1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <string.h> static int special_format (fmt) const char *fmt; { return (strchr (fmt, '*') != 0 || strchr (fmt, 'V') != 0 || strchr (fmt, 'S') != 0 || strchr (fmt, 'n') != 0); } main() { if (special_format ("ee")) abort (); if (!special_format ("*e")) abort (); exit (0); }