C programming
#4

just one thing, why is that
pawn Код:
else
        {
            // Close file from reading.
            fclose(team_file);
            // ....
Why do u close the file when it fails to open ?

also, this is not a bug but, why the function return type is integer ? the func always returns 0 so u could just use "void" as a type and remove the return, but as i said its not a big deal, just to point it out
Reply


Messages In This Thread
C programming - by Riddick94 - 26.04.2013, 09:10
Re: C programming - by Fredrick - 26.04.2013, 09:13
Re: C programming - by Riddick94 - 26.04.2013, 10:28
Re: C programming - by OrMisicL - 26.04.2013, 11:15
Re: C programming - by Riddick94 - 26.04.2013, 11:26
Re: C programming - by OrMisicL - 26.04.2013, 11:32
Re: C programming - by Riddick94 - 26.04.2013, 12:01
Re: C programming - by playbox12 - 26.04.2013, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)