Ignore:
Timestamp:
Feb 22, 2007, 4:31:39 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added error checks on canvas / display creations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/fullwidth.c

    r1462 r1753  
    3636
    3737    cv = cucul_create_canvas(0, 0);
     38    if(cv == NULL)
     39    {
     40        printf("Can't created canvas\n");
     41        return -1;
     42    }
    3843    dp = caca_create_display(cv);
     44    if(dp == NULL)
     45    {
     46        printf("Can't create display\n");
     47        return -1;
     48    }
    3949
    4050    caca = cucul_create_canvas(6, 10);
Note: See TracChangeset for help on using the changeset viewer.