Just a couple small c programs.
|
12 years ago | |
---|---|---|
README.md | 8 years ago | |
myecho | 8 years ago | |
myecho.c | 8 years ago | |
mysort | 8 years ago | |
mysort.c | 8 years ago |
Just a couple small c programs
This program simply takes a binary stream of numbers from STDIN and outputs them. In order to do this, it simply uses fread to grab an array of numbers from the stream until the stream ends. During this, it uses a for loop to print every number from said array.
Like My Echo, this program takes a binary stream of numbers from STDIN. However, this one uses the quicksort algorithm to sort them, and then outputs them to STDOUT.