Guest User

Untitled

a guest
Jun 17th, 2017
264
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. build agrc expection: return 1 if fails
  2.  
  3. open card.raw file
  4.  
  5. build argv[1] exception: return 2 if fails
  6.  
  7. while doing fread, reading a 512 block byte per byte, we don't encounter EOF {
  8. fread in card.raw in blocks of 512 bytes
  9.  
  10. if we find a header {
  11. make a new jpeg file
  12. open jpeg file
  13. }
  14. if we find a new header {
  15. close the new jpeg file
  16. }
  17. else {
  18. write in new jpeg file
  19. }
  20. }
  21. close raw file
RAW Paste Data