Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- char strings[100][256];
- char current = 0;
- FILE* f = fopen("file.extension");
- while(!feof(f)){
- fscanf(f, "%s", strings[current]);
- if(strcmp(strings[current] + strlen(strings[current]) - 3, "ova") == 0)
- ++curent;
- }
- fclose(f);
- }
Add Comment
Please, Sign In to add comment