![]() |
for the programmers in da hizzouse...
got a quick question...
ok, i'm reading from a file, and if the first character in the file is a backslash (\), i need to tell it to go to the next *line* of the document, not next character. i can increment the pointer, but that just goes to the next character. anyone? also, if i have a pointer FILE *fp; can i use 'fp--' to decrement the pointer, go backwards through characters, or does that not work? thanks :) |
You can't use -- to decrement a pointer...a pointer is just an integer representing an address in your memory...if you decrement it, you'll get some fucked up results....
|
fuck... so how do i go backwards then? gonna have to find a way around that. i need to search text for a specific patter of 8 characters. but if i go through it, the pointer will be past it to replace, so i'd have to go backwards or something.... it's either that or use an array to store the file, but that uses a bunch of memory, there's got to be a way around that...
it's been too long since i've done this stuff :( oh yeah, i just pulled the comments out of the file, fuck it. i can put those in the readme. |
fucking microsnot...
the compiler says the program runs, but then it dies in xp. if the program doesn't work, then it shouldn't let it run. no errors or warnings, according to visual studio... |
| All times are GMT -7. The time now is 03:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123