strtabify(3) convert runs of spaces and tabs to tabs

SYNOPSIS


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

DESCRIPTION

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.

RETURN VALUE

strtabify will return its first argument.

AUTHOR

Lars Wirzenius ([email protected])