MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__hdr_test_core

Function stbi__hdr_test_core

Source/Utils/stb_image.h:7084–7092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7082// originally by Nicolas Schulz
7083#ifndef STBI_NO_HDR
7084static int stbi__hdr_test_core(stbi__context *s, const char *signature)
7085{
7086 int i;
7087 for (i=0; signature[i]; ++i)
7088 if (stbi__get8(s) != signature[i])
7089 return 0;
7090 stbi__rewind(s);
7091 return 1;
7092}
7093
7094static int stbi__hdr_test(stbi__context* s)
7095{

Callers 1

stbi__hdr_testFunction · 0.85

Calls 2

stbi__get8Function · 0.85
stbi__rewindFunction · 0.85

Tested by

no test coverage detected