| 8391 | |
| 8392 | #ifndef STBI_NO_STDIO |
| 8393 | STBIDEF int stbi_info(char const* filename, int* x, int* y, int* comp) { |
| 8394 | FILE* f = stbi__fopen(filename, "rb"); |
| 8395 | int result; |
| 8396 | if (!f) |
| 8397 | return stbi__err("can't fopen", "Unable to open file"); |
| 8398 | result = stbi_info_from_file(f, x, y, comp); |
| 8399 | fclose(f); |
| 8400 | return result; |
| 8401 | } |
| 8402 | |
| 8403 | STBIDEF int stbi_info_from_file(FILE* f, int* x, int* y, int* comp) { |
| 8404 | int r; |
nothing calls this directly
no test coverage detected