logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

strmtrim - replace multiple white spaces with single blanks within string

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                               STRMTRIM(3pub)

Description

strmtrim  will replace every run of whitespace characters (as defined by isspace(3)) with a single blank.
       It will not touch leading and trailing whitespace (use strltrim(3) and strrtrim(3) for those).

Name

       strmtrim - replace multiple white spaces with single blanks within string

Return Value

strmtrim will return the value of its argument.

See Also

publib(3), strtrim(3), strltrim(3), strrtrim(3)

Synopsis

       #include <publib.h>
       char *strmtrim(char *str);

See Also