mirror of
https://github.com/kevinnlsamuel/stdouterr.git
synced 2025-12-06 09:55:58 +05:30
doc: fix and improve
This commit is contained in:
16
README.md
16
README.md
@@ -1,6 +1,6 @@
|
|||||||
# stdouterr
|
# stdouterr
|
||||||
|
|
||||||
## combining stdout and stderr
|
> combining stdout and stderr
|
||||||
|
|
||||||
### what is `stdouterr`?
|
### what is `stdouterr`?
|
||||||
|
|
||||||
@@ -16,28 +16,29 @@ have a readily available tool i can use 🤓✨
|
|||||||
|
|
||||||
🥚 initialised
|
🥚 initialised
|
||||||
|
|
||||||
### how to use ?
|
### how to use?
|
||||||
|
|
||||||
not distributing compiled versions yet (it's not even released!)
|
not distributing compiled versions yet (it's not even released!)
|
||||||
|
|
||||||
so you can compile it yourself
|
so you can (_cough_ have to) compile it yourself
|
||||||
|
|
||||||
#### dependencies
|
#### dependencies
|
||||||
- `stdio.h`
|
- `stdio.h`
|
||||||
- `stdlib.h`
|
- `stdlib.h`
|
||||||
|
|
||||||
both of which you most likely got when installing your compiler
|
both of which you most likely got when installing your compiler
|
||||||
|
|
||||||
if for some reason you don't have it and your compilation fails
|
if for some reason you don't have it and your compilation fails
|
||||||
#### Debian / Ubuntu / family
|
##### Debian / Ubuntu / family
|
||||||
install the package named `libc6-dev`
|
install the package named `libc6-dev`
|
||||||
#### RHEL / Fedora / CentOS family
|
##### RHEL / Fedora / CentOS family
|
||||||
install the package named `glibc-devel`
|
install the package named `glibc-devel`
|
||||||
#### other
|
##### other
|
||||||
sorry no idea. Google will be your friend tho
|
sorry no idea. Google will be your friend tho
|
||||||
|
|
||||||
#### compilation
|
#### compilation
|
||||||
```shell
|
```shell
|
||||||
gcc -o stdouterr src/main.c
|
gcc -o stdouterr ./src/main.c
|
||||||
```
|
```
|
||||||
|
|
||||||
#### installation
|
#### installation
|
||||||
@@ -46,6 +47,7 @@ gcc -o stdouterr src/main.c
|
|||||||
cp ./stdouterr ~/.local/bin/
|
cp ./stdouterr ~/.local/bin/
|
||||||
# OR
|
# OR
|
||||||
cp ./stdouterr ~/bin
|
cp ./stdouterr ~/bin
|
||||||
|
# OR to any other path in PATH
|
||||||
```
|
```
|
||||||
##### for all users on the system
|
##### for all users on the system
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user