well here i am 5 minutes later, happy to report that i just removed the hold = (char *)malloc(sizeof(fptr)*sizeof(char) ); and instead used char hold[250] = { }; which worked like a charm!
thanks...
Type: Posts; User: jstn
well here i am 5 minutes later, happy to report that i just removed the hold = (char *)malloc(sizeof(fptr)*sizeof(char) ); and instead used char hold[250] = { }; which worked like a charm!
thanks...
hold is what holds each line as it is read from the file.
the file checking is done in a seperate function call ealier in the program, so i'm sure that the file exists or i wouldn't be at this...
ok i'll make the additions to the file after lunch. BTW i check for the existance of the file before this function is called. i know i'm at LEAST correct there ;) thanks for the input! i will post...
i've been staring at this code for weeks now and i can't figure out why it segfaults. can someone have a look at it and give me some feedback? thanks!
the function opens a file located in the...
great - thanks for your help Prelude.
-jstn
i would like to add some simple ascii animation to my application. i've seen it done with other linux based console apps (which is what mine is). Here is an example; the user loads the app...
...
i was wondering...
if a pointer holds the address to the item it points to, then why do you have to malloc a pointer when you create a new node on a linked list? you're not storing the new node...
hi all post #1 :]
i've got a file that is generated by a program i've made. the first few lines of the file are comments, deliminated by #'s. i'd like to be able to do a fscanf on each line of...