Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (args.pos_size == 0) {
- in = stdin;
- } else {
- in = fopen(args.pos[0], "r");
- }
- if (in) {
- char input[BUFFER_SIZE];
- size_t nread = fread(input, sizeof *input, BUFFER_SIZE, in);
- input[nread] = '\0';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement