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/unicode.c

    r1462 r1753  
    3232
    3333    cv = cucul_create_canvas(0, 0);
     34    if(cv == NULL)
     35    {
     36        printf("Can't created canvas\n");
     37        return -1;
     38    }
    3439    dp = caca_create_display(cv);
    35 
     40    if(dp == NULL)
     41    {
     42        printf("Can't create display\n");
     43        return -1;
     44    }
    3645    cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE);
    3746    cucul_put_str(cv, 1, 1, "Basic Unicode support");
Note: See TracChangeset for help on using the changeset viewer.