Clive,
Clive A Stubbings wrote:
> # To subscribers of the xforms list from Clive A Stubbings <xforms@vjet.demon.co.uk> :
>
> Hmm...
>
> > # To subscribers of the xforms list from joel <joel@dabbles-n-doodads.com> :
> >
> > Actually, I'm looking for an empty string not if a pointer is null. So,
> > strcmp(string,"") works fine. I'm not sure why NULL works under
>
> No wonder we all need GHz CPUs these days...
>
> How about
>
> if (*string == '\0')....
>
No, this won't work either. Don't confuse address with the actual characters.
What that x_form function returns is that the _adrress_ of the object is null. Here u are
comparing that, the actual character pointed to by the address is nulbyte. So these are 2
different things.
--Rob
>
> which is probably 10 times faster ;-)
>
> Cheers
> Clive
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuhs.mil or see
> http://bob.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://world.std.com/~xforms
> List Archive: http://bob.usuhs.mil/mailserv/list-archives/
-- --rob "The only way to lead a good life is to act on your emotions" -- yuy_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 18:08:22 EST