1 // commit: 5efc6af4ebb9d50eb978d0338835544fdfea0396 2011-04-25
2 // scanf misreports bytes consumed when EOF is hit (or null for sscanf)
8 char buf
[] = { 'a', 'a', 0 };
13 n
= sscanf(buf
, "%s%n", dest
, &read_count
);
15 t_error("sscanf matched 1 input items but returned %d\n", n
);
17 t_error("sscanf consumed 2 bytes but reported %d\n", read_count
);