View Single Post
Old 05-15-2002, 11:10 AM   #7
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
Erm nope, they're not both pointers. One is a pointer, the other is an array. The gives a good description of this. The reason for the warning was simply the fact that he was returning the address of a local variable - however that variable could have been anything. Syntactically "buf" is the same as "&buf[0]", but that doesn't make buf a pointer...
KaVir is offline   Reply With Quote