Search:

Type: Posts; User: smitchell

Search: Search took 0.01 seconds.

  1. No, neither do I :confused:. I think it was...

    No, neither do I :confused:. I think it was because, when I tried two originally, another part of the program stopped working and I put two and two together and came up with 6. Two works fine now...
  2. Thanks for the quick response. After following...

    Thanks for the quick response. After following your advice, I've modified the code to look like this:


    int openFile(FILE ***file)
    {
    **file = fopen("D:\\test1.txt","w");
    if(**file == NULL)...
  3. Problems passing a file pointer to functions

    Hi,

    I'm having problems passing a file pointer through nested functions.

    In the code below, main calls func1 which calls func1a which calls openFile. With some modification to the code (to...
Results 1 to 3 of 3