//Compile with: //gcc -g eina_tmpstr_01.c -o eina_tmpstr_01 `pkg-config --cflags --libs eina` #include #include int main(int argc EINA_UNUSED, char **argv EINA_UNUSED) { const char *str; const char *prologe = "The Cylons were created by man. They rebelled. They " "evolved."; eina_init(); str = eina_tmpstr_add_length(prologe, 31); printf("%s\n", str); printf("length: %d\n", eina_tmpstr_len(str)); eina_tmpstr_del(str); eina_shutdown(); return 0; }