My program compiles with one warning: passing arg 1 of `atoi' makes pointer from integer without a cast.
When I run the program it crashes and the line causing the problems looks like this:
map is an 2d array of integers and rdBuffer is a char array which gets a string from a file.Code:map[y][x] = atoi(rdBuffer[x]);
If anyone could help me with the cast I would really appreciate it!



LinkBack URL
About LinkBacks


