>>>>> "Peter" == Peter Jeremy <[EMAIL PROTECTED]> writes:
Peter> (BTW, auto char *foo = "foo"; means that the stack contains a
Peter> pointer to a string foo. The string will be in static storage
Peter> - ie to find the stack, you need to work out the KVA for "foo"
Peter> and then search for this address).
Mmm.... knew that. May not have hacked kernel too much, but I have a
fair grasp of C uglyness. the char *foo was put in as a global to
check the value of the char foo[]="foostring" that I put into the
functions.
Now... this is not strictly C-legal, but with gcc, it will autosize
foo[] and copy "foostring" into it. The cool thing is that
sizeof(foo) == strlen(foo)+1.
Dave.
--
============================================================================
|David Gilbert, Velocet Communications. | Two things can only be |
|Mail: [EMAIL PROTECTED] | equal if and only if they |
|http://www.velocet.net/~dgilbert | are precisely opposite. |
=========================================================GLO================
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message