/* * Render the table to a string. * You are responsible for freeing the returned string. */ wchar_t* table_render(Table* t) { wchar_t* s = xmalloc (sizeof(*s)); *s = L_('\0'); table_render_rows (t, &s); return s; }
/* * Render the table to a string. * You are responsible for freeing the returned string. */ wchar_t* table_render(Table* t) { wchar_t* s = malloc(sizeof(wchar_t)); #ifdef ENABLE_NLS *s = L'\0'; #else *s = '\0'; #endif table_render_rows (t, &s); return s; }