Cancer...

This commit is contained in:
Ognjen Milan Robovic 2023-10-19 17:11:23 -04:00
parent fc78431d48
commit 9b97082fe9

View File

@ -1,6 +1,8 @@
#include <xolatile/xtandard.c> #include <xolatile/xtandard.c>
#include <xolatile/xurses.c> #include <xolatile/xurses.c>
#include <stdio.h>
static int i_x = 0; static int i_x = 0;
static int i_y = 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); } static void i_right (void) { ++i_x; limit (& i_x, 0, curses_screen_width - 1); }
int main (void) { int main (void) {
int i = -420;
char a [64] = "";
char b [5] = "Heyo";
curses_configure (); curses_configure ();
curses_bind (SIGNAL_W, i_up); curses_bind (SIGNAL_W, i_up);
@ -33,5 +39,10 @@ int main (void) {
curses_synchronize (); curses_synchronize ();
} }
number_to_string (i, a);
printf ("%s <> ", b);
printf ("%i <> %s\n", string_length (b), string_reverse (b));
return (EXIT_SUCCESS); return (EXIT_SUCCESS);
} }