# To subscribers of the xforms list from joel <joel@dabbles-n-doodads.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.
Joel
(original poster)
>>
>
> 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 ;-)
>
_________________________________________________
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 : Fri Nov 24 2000 - 11:07:09 EST