1234567891011121314151617 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <fcntl.h>
- const int size = 50; // chose this number for no particular reason
- int main() {
- unsigned int number = 0;
- unsigned int array[size];
- int total;
- while ((total = fread(array, sizeof number, size, stdin))){
- for (int i = 0; i < total; i++){
- printf("%i\n", array[i]);
- }
- }
- }
|