Thanks for catching that. I only looked at his variable declarations.
Right -- one is a pointer, the other is a pointer to a known size of a bunch chars on the stack. The distinction I was trying to make was that they're both pointers, and that's why he's getting the "returning address of local variable" warning. I never meant to imply that they're precisely the same, merely that they share an important characteristic =).
|