void LoadImage( char *name ) { Image image = LoadImageFile( name ); if( image ) { // the image file loaded successfully. } }