From: Matthew Mondor Date: Wed, 9 Sep 2015 23:25:43 +0000 (+0000) Subject: Initial import X-Git-Url: http://git.pulsar-zone.net/?a=commitdiff_plain;h=eb859de1634b290a3f15910ca88db741e9d006ed;p=mmondor.git Initial import --- diff --git a/tests/tget.c b/tests/tget.c new file mode 100644 index 0000000..9c47c1d --- /dev/null +++ b/tests/tget.c @@ -0,0 +1,21 @@ +#include +#include +#include + +int main(void); + +int +main(void) +{ + char str[2048], *tb = str, *cap; + + cap = tgetstr("le", &tb); + (void) printf("cap = %p\n", cap); + if (cap != NULL) + (void) printf("cap = %s\n", cap); + (void) printf("tb = %p\n", tb); + if (tb != NULL) + (void) printf("*tb = 0x%02x\n", *tb); + + return 0; +}