Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int readf()
- {
- char ch[3];
- ch[1] = '\0';
- FILE *input = fopen(infile, "r");
- while ((ch[0] = getc(input)) != '\n' && ch[0] != '\\' && ch[0] != EOF)
- {
- strcat(lbuf, ch);
- printf("char: %s\n", ch);
- }
- printf("%s", lbuf);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement