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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dan,

On Tue, Jun 12, 2012 at 5:58 PM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux