# To subscribers of the xforms list from Steve Lamont <spl@ncmir.ucsd.edu> :
> > 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.
Well, if the original poster was to be believed, the intent was to
determine whether the string was empty (""). This is the equivalent
of
string[0] == '\0'
or
*string == '\0'
This is definitely different than
string == NULL
spl
_________________________________________________
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:51:36 EST