Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Dealing with a large integer
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Walter Roberson, post: 2453356"] How about something like this: Open a file w+. Write known data into it. fseek() back to the beginning of the file. gets() with a buffer at least as big as the data to be written. Within standard C, there is nothing that could sneak in and change the file contents "underneath you". Unix has multiprocessing and another Unix process could change the file, but that's not the fault of standard C. And besides, you could run this on a system that did not offer multiple processes. (Now, if you start going in and bashing The One True Process with a debugger, clearly C would not be able to offer any guarantees of anything at all.) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Dealing with a large integer
Top