Re: XForms: problems with fl_get_choice_text

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 6 Nov 97 06:23:29 PST

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> > sscanf((char *)datum(),"%*s %s %d %s %d",monat,&tag,time_string,&jahr);
>
> Are you sure that everything is correct with this sscanf??? The format
> string has more identifiers that the variable pointers you pass to it.

Nope, this is at least provisionally correct. The "%*s" means to skip
the first string token, so there are only 4 parameters necessary in
the list. Assuming that strings are returned to strings and ints are
returned to ints, all should be dandy.

I think what I'd check is to make sure that the function datum()
returns a valid pointer and not NULL.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/