<p></p>
<p>You need to use it correctly. ;-)</p>
<pre><code>                                       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);

</code></pre>
<pre><code> 0(1403811) WARNING: <core> [main.c:2860]: main(): 'test





, 14' before
 0(1403811) WARNING: <core> [main.c:2862]: main(): 'test, 4' after

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2569#issuecomment-737062210">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK6ETTRSD3A7L5UOYTSSXX5DANCNFSM4UHW5LHQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOID2WCY4ESPMEO3ILSSXX5DA5CNFSM4UHW5LH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFPXK2QQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2569#issuecomment-737062210",
"url": "https://github.com/kamailio/kamailio/issues/2569#issuecomment-737062210",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>