Re: [Q] Cleaning string whitespace trimming. Does it make any sense?

Ezequiel Garcia
2012-06-13T18:16:24Z

Dan,

On Tue, Jun 12, 2012 at 5:58 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> Actually, on second thought strim() already does what we want.  Just
> ignore the return value.
>

If I *only* want to remove trailing whitespace, using strim() does the job
but it *also* tries to remove leading whitespace.

That can't hurt, but it also doesn't hurt to add a separate function
for that, right?

Thanks,
Ezequiel.