13 matches
= sscanf ("x ]", "%[^] ]", str
);
14 printf ("Matches = %d, string str = \"%s\".\n", matches
, str
);
15 printf ("str should be \"x\".\n");
17 if (strcmp (str
, "x"))
22 matches
= sscanf (" ] x", "%[] ]", str
);
23 printf ("Matches = %d, string str = \"%s\".\n", matches
, str
);
24 printf ("str should be \" ] \".\n");
26 if (strcmp (str
, " ] "))