瀏覽代碼

* Jylam is too modest.

tags/v0.99.beta14
Sam Hocevar sam 19 年之前
父節點
當前提交
1f094662d8
共有 1 個文件被更改,包括 4 次插入6 次删除
  1. +4
    -6
      test/import.c

+ 4
- 6
test/import.c 查看文件

@@ -1,6 +1,6 @@
/*
* import libcaca importers test program
* Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
* import libcaca importers test program
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved
*
* $Id$
@@ -54,17 +54,16 @@ int main(int argc, char *argv[])
fprintf(stderr, "%s: Can't allocate memory (%d bytes)\n", argv[0], size);
return 1;
}

if(!fread(buffer, size, 1, fp))
{
fprintf(stderr, "%s: Can't read %s\n", argv[0], argv[1]);
return 1;
}



cv = cucul_import_canvas(buffer, size, "");

if(cv==NULL)
if(cv == NULL)
{
fprintf(stderr, "%s: Can't load %s, unknow reason.\n", argv[0], argv[1]);
return 1;
@@ -79,7 +78,6 @@ int main(int argc, char *argv[])
caca_free_display(dp);
cucul_free_canvas(cv);


return 0;
}


Loading…
取消
儲存