diff options
author | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-09-11 14:38:47 +0900 |
commit | 884c8093d63402a1ad0b502244b791e3c6782be3 (patch) | |
tree | a600d4ab0d431a2bdfe4c15b70df43c14fbd8dd0 /debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c | |
parent | 14e1aa2006796f147f3f4811fb908a6b01e79253 (diff) | |
download | extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.tar.gz extra-dependencies-884c8093d63402a1ad0b502244b791e3c6782be3.zip |
Added debian extra dependency packages.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c')
-rw-r--r-- | debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c b/debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c new file mode 100644 index 00000000..fa3df7fc --- /dev/null +++ b/debian/imlib/imlib-1.9.15/gdk_imlib/t-load.c @@ -0,0 +1,23 @@ +#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; +} |