djgpp Integer made from pointer without a cast
Posted: Mon Mar 24, 2003 12:00 am
lets say i have a function putDec(int number) which prints the number in decimal. this works great. now i have a function enable_ints() or any function really, and i call putDec(enable_ints) because i want to know the address of the function. this compiles with a warning but appears to print the correct address.
the warning is what i am wondering about: it says (upon linking with LD): "Integer made from pointer without a cast" or something like that. is there another variable type besides int to use with pointers? i am new to C and djgpp and do not know all the variable types...
thanks
OSNewbie
the warning is what i am wondering about: it says (upon linking with LD): "Integer made from pointer without a cast" or something like that. is there another variable type besides int to use with pointers? i am new to C and djgpp and do not know all the variable types...
thanks
OSNewbie