Timeline for Pset3 Resize Array not storing data properly
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 5, 2019 at 17:58 | comment | added | De1337ny | So instead of the array, i just looped it back to the start of the scanline n times to write out my n lines (had to break this answer up due to character restrictions, sorry) @mach2019 | |
Apr 5, 2019 at 17:55 | comment | added | De1337ny | When reading into a file the system keeps a "bookmark" of where it is called a File Pointer. This basically is the system remembering where it was last time it read. If you look in copy.c the fseek function that skips over padding is actually moving that pointer with inptr as the file its moving within, padding is the variable for how much it needs to move, and SEEK_CUR means the current position of the File Pointer is the reference point to use for the move (if padding is 2 then it moves 2 spots forward from its CURrent spot.) | |
Apr 5, 2019 at 6:06 | comment | added | mach2019 | Hi, what do you mean, moving the pointer to the start of the line?. | |
Mar 26, 2019 at 15:55 | vote | accept | De1337ny | ||
Mar 26, 2019 at 15:54 | history | answered | De1337ny | CC BY-SA 4.0 |