Kaynağa Gözat

Cancer...

master
ebeveyn
işleme
9b97082fe9
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  1. +11
    -0
      example/view.c

+ 11
- 0
example/view.c Dosyayı Görüntüle

@@ -1,6 +1,8 @@
#include <xolatile/xtandard.c>
#include <xolatile/xurses.c>

#include <stdio.h>

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);
}

Yükleniyor…
İptal
Kaydet