You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
350 B
24 lines
350 B
#include <stdio.h>
|
|
#include "gdk_imlib.h"
|
|
|
|
|
|
int
|
|
main( int ac, char* av[] )
|
|
{
|
|
GdkImlibImage* img;
|
|
|
|
if (ac != 2) {
|
|
fprintf( stderr, "usage: %s filename\n", av[0] );
|
|
return 33;
|
|
}
|
|
|
|
img = gdk_imlib_load_image( av[1] );
|
|
|
|
if ( img == NULL ) {
|
|
fprintf( stderr, "failed to load file '%s'.\n", av[1] );
|
|
return 1;
|
|
}
|
|
|
|
return 0;
|
|
}
|