Search:

Type: Posts; User: Sn0mAN

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,090

    Global Variables

    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...
  2. Thread: += and -=

    by Sn0mAN
    Replies
    7
    Views
    1,080

    += and -=

    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 }
  3. Replies
    6
    Views
    1,961

    int input(char * dest, FILE * inputStream, const...

    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'...
  4. Replies
    6
    Views
    1,961

    Oh I didnt notice that! I changed it to 'w'. ...

    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
  5. Replies
    6
    Views
    1,961

    File Pointers in Seperate Functions

    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...
Results 1 to 5 of 5