| 7686 | |
| 7687 | #ifndef STBI_NO_STDIO |
| 7688 | STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp) |
| 7689 | { |
| 7690 | FILE *f = stbi__fopen(filename, "rb"); |
| 7691 | int result; |
| 7692 | if (!f) return stbi__err("can't fopen", "Unable to open file"); |
| 7693 | result = stbi_info_from_file(f, x, y, comp); |
| 7694 | fclose(f); |
| 7695 | return result; |
| 7696 | } |
| 7697 | |
| 7698 | STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp) |
| 7699 | { |
nothing calls this directly
no test coverage detected