diff --git a/example/view.c b/example/view.c index f8a889a..ded0f39 100644 --- a/example/view.c +++ b/example/view.c @@ -1,6 +1,8 @@ #include #include +#include + static int i_x = 0; static int i_y = 0; @@ -10,6 +12,10 @@ static void i_left (void) { --i_x; limit (& i_x, 0, curses_screen_width - 1); static void i_right (void) { ++i_x; limit (& i_x, 0, curses_screen_width - 1); } int main (void) { + int i = -420; + char a [64] = ""; + char b [5] = "Heyo"; + curses_configure (); curses_bind (SIGNAL_W, i_up); @@ -33,5 +39,10 @@ int main (void) { curses_synchronize (); } + number_to_string (i, a); + + printf ("%s <> ", b); + printf ("%i <> %s\n", string_length (b), string_reverse (b)); + return (EXIT_SUCCESS); }