Advertisement
Guest User

unsafe code

a guest
Jul 6th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. // I doubt any of these are needed.
  2. #include <psp2/ctrl.h>
  3. #include <psp2/kernel/processmgr.h>
  4. #include <psp2/rtc.h>
  5. #include <psp2/types.h>
  6. #include <psp2/touch.h>
  7. #include <psp2/io/fcntl.h>
  8. #include <psp2/io/dirent.h>
  9. #include <psp2/power.h>
  10. #include <psp2/appmgr.h>
  11.  
  12. #include <math.h>
  13. #include <stdio.h>
  14. #include <string.h>
  15. #include <stdlib.h>
  16. #include <unistd.h>
  17.  
  18.  
  19. int main(int argc, char *argv[]){
  20. FILE * fp;
  21. fp = fopen ("ux0:_stuffz/a.txt", "w+");
  22. fprintf(fp, "%s", "This is test string");
  23. fclose(fp);
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement