Guest User

Untitled

a guest
Jan 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4. #include <malloc.h>
  5.  
  6. FILE *rp;
  7. FILE *wp;
  8.  
  9. int main(){
  10. rp=fopen("test.bin","rb");
  11. wp=fopen("test2.bin","wb");
  12. if(rp==NULL){printf("ERROR");}
  13. if(wp==NULL){printf("ERROR");}
  14. int i=0;
  15. char *a=NULL;
  16. while(i<sizeof(rp))
  17. {
  18.  
  19. }
  20. fclose (rp);
  21. fclose (wp);
  22. free (rp);
  23. free (wp);
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment