Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. if (args.pos_size == 0) {
  2. in = stdin;
  3. } else {
  4. in = fopen(args.pos[0], "r");
  5. }
  6.  
  7. if (in) {
  8. char input[BUFFER_SIZE];
  9. size_t nread = fread(input, sizeof *input, BUFFER_SIZE, in);
  10. input[nread] = '\0';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement