initial commit
[rofl0r-xstring.git] / xstring_test.c
blob777d6ce3aa794c44896462450c2dcf0e9d16c847
1 #include "xstring.h"
3 int main() {
4 xstr* str = xstr_new(1);
5 xstr_append(str, xstr_fromliteral("HAHAHAA", 0), xstr_fromliteral("HAHAHAA", 0), xstr_fromliteral("HAHAHAA", 0), 0);
6 xstr_reverse(str);
7 xstr_puts(str);
8 xstr_free(str);
9 shortstr(1024) z;
10 xstr* s = xshortstr_init((void*) &z, 1024);
11 //z.buffer[1023] = '\0';
12 xstr_append(s, xstr_fromliteral("LOLOLOL", 0), str, 0);
13 xstr_puts(s);
14 return 0;