Just a couple small c programs.

myecho.c 375B

1234567891011121314151617
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <fcntl.h>
  4. const int size = 50; // chose this number for no particular reason
  5. int main() {
  6. unsigned int number = 0;
  7. unsigned int array[size];
  8. int total;
  9. while ((total = fread(array, sizeof number, size, stdin))){
  10. for (int i = 0; i < total; i++){
  11. printf("%i\n", array[i]);
  12. }
  13. }
  14. }