]> git.mdlowis.com Git - proto/labwc.git/commit
string-helpers: rtrim() with just char *s, call it later in string_strip
authorTomi Ollila <tomi.ollila@iki.fi>
Wed, 1 Jan 2025 19:26:57 +0000 (21:26 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 16 Mar 2025 11:18:39 +0000 (11:18 +0000)
commit84ba60f45345eb07bd4debcd53f735cc1061a13e
tree83fb545d9f61a29469f656753c2bb779cb61b0f4
parent75eb370d3153848b43dfe15a80b0016decea4a6c
string-helpers: rtrim() with just char *s, call it later in string_strip

char **s not needed to get trailing whitespace trimmed,
and rtrim() does not return anything

if there is leading whitespace in *s in call to string_strip(),
there is less chars left to scan in rtrim().
src/common/string-helpers.c