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

strtabify - convert runs of spaces and tabs to tabs

#include <publib.h>
char *strtabify(char *str, size_t tabsize);

strtabify will converts spaces and tabs to tabs and spaces (using the minimal amount of spaces required, possibly none), while preserving indentation. Tab positions are set every tabsize columns.

strtabify will return its first argument.

publib(3), struntabify(3)

Lars Wirzenius (lars.wirzenius@helsinki.fi)

C Programmer's Manual Publib