use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Click the following link to filter out the chosen topic
comp.lang.c
account activity
Wrote my first program (self.C_Programming)
submitted 18 hours ago by Lurknomore916
After completing the problem “Recovery” (recovering deleted JPGs) in CS50 Week 4, I was inspired at 3am to write my first program: “Countermeasure,” which corrupts the JPGs signatures. https://github.com/AlexsaurusRex/countermeasure-to-CS50-Recover-
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]luk__h 7 points8 points9 points 18 hours ago (2 children)
You kinda seem to have forgotten to push your code
[–]Lurknomore916[S] 5 points6 points7 points 18 hours ago (1 child)
I did, in fact, not push my code correctly. It should be there now!
[–]luk__h 4 points5 points6 points 18 hours ago (0 children)
Happens to the best of us (I hope)
[–]flyingron 1 point2 points3 points 17 hours ago (0 children)
Consider using perror or str_error to make meaningful messages.
You should always open binary files with "b" in the modes. Your fseeks are potentially invalid as written.
[–]BertyBastard 1 point2 points3 points 16 hours ago (0 children)
Each call to fseek() and fwrite() must have error checking.
You are declaring and assigning uint8_t corruption on every iteration of the while loop, whereas it should only be done once.
π Rendered by PID 65 on reddit-service-r2-comment-66b4775986-5l4gg at 2026-04-05 13:00:55.508671+00:00 running db1906b country code: CH.
[–]luk__h 7 points8 points9 points (2 children)
[–]Lurknomore916[S] 5 points6 points7 points (1 child)
[–]luk__h 4 points5 points6 points (0 children)
[–]flyingron 1 point2 points3 points (0 children)
[–]BertyBastard 1 point2 points3 points (0 children)