
Implement mini_scanf, a reduced formatted input function that reads from standard input.
standard input: `-17 bridge Z`, call `mini_scanf("%d %s %c", &n, word, &c)`Expected result
returns 3, stores -17, `bridge`, and `Z`For your own tracking. Tests grade your code.
standard input: `xy z`, call `mini_scanf("%c%c%c", &a, &b, &c)`Expected result
returns 3, stores `x`, `y`, then a spaceExpected files
mini_scanf.cAllowed functions
fgetcungetcferrorfeofisspaceisdigitva_startva_argva_copyva_end
v0.40: Create exercises. Challenge the community.
Meet Studio →Implement mini_scanf, a reduced formatted input function that reads from standard input.
standard input: `-17 bridge Z`, call `mini_scanf("%d %s %c", &n, word, &c)`Expected result
returns 3, stores -17, `bridge`, and `Z`For your own tracking. Tests grade your code.
standard input: `xy z`, call `mini_scanf("%c%c%c", &a, &b, &c)`Expected result
returns 3, stores `x`, `y`, then a spaceExpected files
mini_scanf.cAllowed functions
fgetcungetcferrorfeofisspaceisdigitva_startva_argva_copyva_end
Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.