[LIBC] Modfied Version of sscanf

Martin Möller moeller.akt at googlemail.com
Sat Apr 30 17:14:35 UTC 2011


Hi to all,

This is my first email to this list, so hello to all members.
The current version of sscanf, stops when a whitespace characters occurs in
a string
when the Œ%s¹ (string) type is used.

The following code:

char name [20], value [20];
sscanf (³Test 2->Test 3², ³%s->%s², name, value)
printf (³%s->%s\n², name, value);

outputs total garbage on my FreeBSD-7.0-RELEASE #0 amd64.
Is there already a way to do this or should we release a new version of
sscanf, e.g. called sscanfWS.

This modified version would output: Test 2->Test 3.

With regards,
Martin


More information about the freebsd-hackers mailing list