DOKK / manpages / debian 11 / publib-dev / strmtrim.3pub.en
STRMTRIM(3pub) C Programmer's Manual STRMTRIM(3pub)

strmtrim - replace multiple white spaces with single blanks within string

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

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).

strmtrim will return the value of its argument.

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

Lars Wirzenius (lars.wirzenius@helsinki.fi)

C Programmer's Manual Publib