Ignore:
Timestamp:
Nov 13, 2007, 12:19:00 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Add error checking to the tutorial.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/doc/tutorial.dox

    r1945 r1946  
    1010
    1111
    12 First, a working program, very simple, to check you can compile and run it :
     12First, a working program, very simple, to check you can compile and run it:
    1313
    1414\code
     
    2222    cucul_canvas_t *cv; caca_display_t *dp; caca_event_t ev;
    2323    cv = cucul_create_canvas(0, 0);
     24    if(!cv) return 1;
    2425    dp = caca_create_display(cv);
     26    if(!dp) return 1;
    2527    /* Set window title */
    2628    caca_set_display_title(dp, "Hello!");
Note: See TracChangeset for help on using the changeset viewer.