# To subscribers of the xforms list from joel <email@example.com> :
>> How about
>> if (*string == '\0')....
Actually, I think this will work fine as long as the string never
contains uninitialized or garbage data ( which it shouldn't).
Any function that is returning data for the string will return '\0' if
the string is empty, so the above should work. In any case, what I was
doing originally, strcmp(string,NULL), was the wrong thing to do and an
HPUXism let me get away with it.
> No, this won't work either. Don't confuse address with the actual
> 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.
>> which is probably 10 times faster ;-)
To unsubscribe, send the message "unsubscribe" to
firstname.lastname@example.org or see
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Fri Nov 24 2000 - 11:07:09 EST