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