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 ([email protected])