Re: XForms: strcmp

From: joel (
Date: Fri Nov 24 2000 - 11:13:33 EST

  • Next message: Jan Menzel: "XForms: interaction in push/pull application"

    # To subscribers of the xforms list from joel <> :

    >> 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.

    (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 or see
    XForms Home Page:
    List Archive:

    This archive was generated by hypermail 2b29 : Fri Nov 24 2000 - 11:07:09 EST