Is it possible to declare global variables within a function?
I have an array MyArray[100,total_entries] but 'total_entries' is only initialized after the application starts running and its value...
Type: Posts; User: Sn0mAN
Is it possible to declare global variables within a function?
I have an array MyArray[100,total_entries] but 'total_entries' is only initialized after the application starts running and its value...
I've come across += and -= and have no clue as to what they do, and I cant find any tutorials either. Can anyone explain?
EDIT: I've also noticed some code..
if (i)
{ etc etc etc }
int input(char * dest, FILE * inputStream, const char tochar)
/*
INPUT gets characters from a stream until the character specified in 'tochar' is reached OR until the entire
return string 'dest'...
Oh I didnt notice that!
I changed it to 'w'.
Anyway, Im really new to C so can you tell me exactly what I need to use?
Thanx in advance
I opened a file in my main() function like this
FILE *myfile = fopen("myfile.txt","r");
I want to use the file for input in another function called writeData.
How do I pass the file pointer...