| 1219 | |
| 1220 | |
| 1221 | STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp) |
| 1222 | { |
| 1223 | FILE *f = stbi__fopen(filename, "rb"); |
| 1224 | unsigned char *result; |
| 1225 | if (!f) return stbi__errpuc("can't fopen", "Unable to open file"); |
| 1226 | result = stbi_load_from_file(f,x,y,comp,req_comp); |
| 1227 | fclose(f); |
| 1228 | return result; |
| 1229 | } |
| 1230 | |
| 1231 | STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp) |
| 1232 | { |