MCPcopy Create free account
hub / github.com/GJDuck/e9patch / scanf_get_char

Function scanf_get_char

examples/stdlib.c:4266–4280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4264};
4265
4266static __attribute__((__noinline__)) char scanf_get_char(
4267 struct scanf_stream_s *in)
4268{
4269 char c = EOF;
4270 if (in->stream != NULL)
4271 c = fgetc_unlocked(in->stream);
4272 else
4273 {
4274 if (in->pos < 0 || in->str[in->pos] == '\0')
4275 in->pos = -1;
4276 else
4277 c = in->str[in->pos++];
4278 }
4279 return c;
4280}
4281
4282static __attribute__((__noinline__)) void scanf_unget_char(char c,
4283 struct scanf_stream_s *in)

Callers 3

scanf_get_char_nFunction · 0.85
scanf_get_numFunction · 0.85
scanf_implFunction · 0.85

Calls 1

fgetc_unlockedFunction · 0.85

Tested by

no test coverage detected