Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <malloc.h>
- FILE *rp;
- FILE *wp;
- int main(){
- rp=fopen("test.bin","rb");
- wp=fopen("test2.bin","wb");
- if(rp==NULL){printf("ERROR");}
- if(wp==NULL){printf("ERROR");}
- int i=0;
- char *a=NULL;
- while(i<sizeof(rp))
- {
- }
- fclose (rp);
- fclose (wp);
- free (rp);
- free (wp);
- return 0;
- }
Add Comment
Please, Sign In to add comment