On 5/17/07, Mark Glines <[EMAIL PROTECTED]> wrote:
On Thu, 17 May 2007 11:13:45 -0700
"jerry gay" <[EMAIL PROTECTED]> wrote:
> char *s = s_key;
> *s = 0;
> however... why is 's' nulled out, directly after it's initialized to
> 's_key'? that looks funny.
The first line declares a pointer, pointing to s_key. The second line
sets the first byte of s_key's buffer to 0 (the pointer value itself
doesn't change).
ah, see, there i go again. i missed the significance of the '*' in '*s = 0'.
somebody go get me a k&r--er, wait, i have it sitting in front of me.
i'm all out of excuses :(
i'd better do some more c coding, so all this sinks in some more.
~jerry