You need to use it correctly. ;-)
str test = str_init("test \n\n\n\n\n\n");
LM_WARN("'%.*s, %d' before\n", test.len, test.s, test.len);
trim(&test);
LM_WARN("'%.*s, %d' after\n", test.len, test.s, test.len);
0(1403811) WARNING: <core> [main.c:2860]: main(): 'test
, 14' before
0(1403811) WARNING: <core> [main.c:2862]: main(): 'test, 4' after
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.