1
/* bug #22593: vfscanf improperly scans string parameters with a width
3
$Id: bug-22593.c,v 1.1.2.2 2008/03/18 13:30:06 dmix Exp $ */
5
/* Seems, this is duplication of bug #19079: sscanf %s eats 1 char too much
12
# define sscanf_P sscanf
15
# include <avr/pgmspace.h>
26
result = sscanf_P (",ABCD,EFGH,", PSTR (",%4s,%4s,"), s1, s2);
29
if (strcmp (s1, "ABCD") || strcmp (s2, "EFGH"))
34
result = sscanf_P (",ABCD,EFGH,", PSTR (",%3s,%3s,"), s1, s2);
37
if (strcmp (s1, "ABC"))