Git Product home page Git Product logo

photo-recovery-and-memory-using-c's Introduction

Photo Recovery and Memory using C

  • Recover: Recover deleted JPEGs from a memory card.
  • I wrote the code in recover.c. The other files were provided by the instructor.

Recover Program Demo

💡Lessons Learned

  • Using malloc and command-line argument $ valgrind to prevent leaking memory and segmentation faults
  • Implementing knowledge of JPEGs “signatures”: 0xff 0xd8 0xff
  • Reading and writing files into memory using fread and fwrite
  • Using buffers of BLOCK SIZE

🚀 Getting Started

To run this project locally:

  • In your terminal, navigate to this folder's root directory and run the following commands
$ clang -o recover recover.c
$ ./recover card.raw

The expected result for the above execution is the recovery of 50 JPEGs, numbered 000.jpg to 050.jpg, that will be populated in this folder's root directory.

photo-recovery-and-memory-using-c's People

Contributors

jacobgrisham avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.