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...
|