Re: XForms: problems with fl_get_choice_text

Giorgos Petasis (petasis@estia.iit.nrcps.ariadne-t.gr)
Thu, 6 Nov 1997 08:56:40 +0200 (EET)

To subscribers of the xforms list from petasis@estia.iit.nrcps.ariadne-t.gr (Giorgos Petasis) :

>
> To subscribers of the xforms list from Bjoern Fuerst <fuerst@kph.uni-mainz.de> :
>
> 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.
I thing you should check what you get in those variables (what are tag and
jahr? I assume they are just simple variables, because you specify an
address, and not arrays of chars, where you should have placed e.g.
&tag[0]. But the format assumes that is a string, so if not null, will
return at least 2 characters)
Just an assumption :)
Could you make a simple program, that shows the problem?
gpp.
_________________________________________________
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/