| 1364 | |
| 1365 | |
| 1366 | STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) |
| 1367 | { |
| 1368 | FILE *f = stbi__fopen(filename, "rb"); |
| 1369 | unsigned char *result; |
| 1370 | if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); |
| 1371 | result = stbi_load_from_file(f,x,y,comp,req_comp); |
| 1372 | fclose(f); |
| 1373 | return result; |
| 1374 | } |
| 1375 | |
| 1376 | STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) |
| 1377 | { |
no test coverage detected