From 67288344d776b49e3235e15abd557f820bb87fe8 Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 11 Jun 2010 04:02:55 +0000 Subject: [PATCH] [CHG] Small doc improvement --- GRRLIB/GRRLIB/GRRLIB_fileIO.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GRRLIB/GRRLIB/GRRLIB_fileIO.c b/GRRLIB/GRRLIB/GRRLIB_fileIO.c index 5d4e059..63ed924 100644 --- a/GRRLIB/GRRLIB/GRRLIB_fileIO.c +++ b/GRRLIB/GRRLIB/GRRLIB_fileIO.c @@ -41,7 +41,9 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) { FILE *fd; // Open the file - if ( !(fd = fopen(filename, "rb")) ) return -1; + if ( !(fd = fopen(filename, "rb")) ) { + return -1; + } // Get file length fseek(fd, 0, SEEK_END); @@ -71,6 +73,7 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) { * Load a texture from a file. * @param filename The JPEG, PNG or Bitmap filename to load. * @return A GRRLIB_texImg structure filled with image information. + * If an error occurs NULL will be returned. */ GRRLIB_texImg* GRRLIB_LoadTextureFromFile(const char *filename) { GRRLIB_texImg *tex;