d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Problem In C
Add Reply New Topic New Poll
Member
Posts: 6,660
Joined: Sep 27 2007
Gold: 50,184.16
May 28 2012 09:21am
I've got a header named Menu.c
there is a function menu wich call the function init_file(fileName) with fileName a char* (init_file return void)
i do printf fileName in the function init_file -> it prints the name of the file
i do printf fileName in the menu -> it returns NULL...

i thought a pointeur was returned even if u didn't write return fileName at the end of the function

Could u help me?
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
May 28 2012 10:54am
code?
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll