From 9b97082fe97b6a08b8a4a173549feea2a8b219a5 Mon Sep 17 00:00:00 2001 From: xolatile Date: Thu, 19 Oct 2023 17:11:23 -0400 Subject: [PATCH] Cancer... --- example/view.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); }