Timeline for Struggling with recover.c
Current License: CC BY-SA 3.0
47 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 4 at 6:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 7 at 5:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 9 at 4:09 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 10, 2023 at 3:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 13, 2023 at 3:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 15, 2023 at 1:08 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 15, 2022 at 0:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 17, 2022 at 21:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 19, 2022 at 20:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 19, 2021 at 19:04 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 22, 2021 at 19:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 24, 2021 at 18:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 24, 2020 at 17:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 27, 2020 at 17:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 29, 2020 at 16:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 30, 2019 at 16:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 2, 2019 at 15:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 4, 2019 at 15:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 5, 2018 at 14:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 30, 2018 at 21:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 29, 2018 at 3:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 25, 2018 at 5:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 22, 2018 at 22:10 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 21, 2018 at 15:54 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 22, 2018 at 5:46 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 20, 2018 at 9:03 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 20, 2018 at 4:36 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 7, 2018 at 0:53 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 1, 2018 at 22:15 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 24, 2017 at 19:43 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Oct 20, 2017 at 7:30 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 8, 2017 at 14:07 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jul 26, 2017 at 19:48 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 24, 2017 at 7:24 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 24, 2017 at 15:18 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 24, 2017 at 10:52 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 15, 2017 at 8:49 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 3, 2017 at 17:11 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jan 4, 2017 at 13:27 | history | edited | Shaw Ankush | CC BY-SA 3.0 |
added 102 characters in body
|
Jan 4, 2017 at 7:25 | comment | added | Blauelf | Sscanf is for parsing text representations of data, not binary! | |
Jan 4, 2017 at 5:38 | comment | added | Shaw Ankush | Thank you so much! just one more thing => If I use sscanf to read from the tempstorage's pointee into the first int of type uint32_t then also it would read the first 32 bits and then I could check it against the number 0Xffd8ffe0-ef. What potential error can sscanf incur? | |
Jan 3, 2017 at 10:11 | comment | added | Blauelf |
scanf and printf is for interpreting or formatting content, it's for text-based formats, not for binary. If there was a number 67 stored as those two digit characters, you'd use scanf, but if it is stored as ASCII character C (has value 67, 'C' == 67 is true), you'd interpret it as a byte, an 8-bit integer, using functions like fread or fgetc.
|
|
Jan 3, 2017 at 10:07 | answer | added | Blauelf | timeline score: 0 | |
Jan 2, 2017 at 19:03 | history | edited | Shaw Ankush | CC BY-SA 3.0 |
added 187 characters in body
|
Jan 2, 2017 at 19:02 | comment | added | Shaw Ankush | Thanks for the help. I did those changes. I ran it in gdb and the check(now firstint) keeps changing its value but it never achieves any value between that range and hence program ends without generating any jpgs. I have updated the source code. Please take a look. And also can you explain why you asked to avoid using scanf and fprintfs. | |
Jan 2, 2017 at 12:06 | comment | added | Blauelf |
A float makes no sense to me. An uint32_t however would (like uint32_t check = *((uint32_t*) tempstorage); , just not with scanf). You'd have to write full 512 bytes, not 508, and do not by any means fprintf. You fclose tempjpgg without checking whether one is open. Your for loop might better use !feof(sdcard) , not without the !
|
|
Dec 28, 2016 at 13:49 | history | asked | Shaw Ankush | CC BY-SA 3.0 |