MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__pnm_skip_whitespace

Function stbi__pnm_skip_whitespace

include/stb/stb_image.h:7548–7560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7546}
7547
7548static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)
7549{
7550 for (;;) {
7551 while (!stbi__at_eof(s) && stbi__pnm_isspace(*c))
7552 *c = (char) stbi__get8(s);
7553
7554 if (stbi__at_eof(s) || *c != '#')
7555 break;
7556
7557 while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' )
7558 *c = (char) stbi__get8(s);
7559 }
7560}
7561
7562static int stbi__pnm_isdigit(char c)
7563{

Callers 1

stbi__pnm_infoFunction · 0.85

Calls 3

stbi__at_eofFunction · 0.85
stbi__pnm_isspaceFunction · 0.85
stbi__get8Function · 0.85

Tested by

no test coverage detected