Hello, I'm having a problem with pointers that I can't figure out. It's hard for me to explain so I will show you the code and the problem.
calling function prototype:
The above function has to return one of its local variables, here is the decleration:Code:char * LoadAudioList(char * file_tracks)
The return statement:Code:static char playlist[TOTAL_SONGS][TRACK_LENGTH];
The warning I get is from this line:Code:return *playlist;
The warning I'm getting is:Code:char (* playlist)[81]; playlist = LoadAudioList("game_songs.txt");
assignment makes pointer from integer without a cast



LinkBack URL
About LinkBacks



