Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void readfile_b(FILE * fp){
- printf("t2");
- int cand_num;
- fscanf(fp,"%d",&cand_num);
- }
- int main(int argc,char *argv[]) {
- printf("t1");
- if (1<argc<3){
- FILE * fp;
- fp = fopen(argv[2],"r");
- readfile_b(fp);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement