Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

strtabify - convert runs of spaces and tabs to tabs

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                              STRTABIFY(3pub)

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.

Name

       strtabify - convert runs of spaces and tabs to tabs

Return Value

strtabify will return its first argument.

See Also

publib(3), struntabify(3)

Synopsis

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

See Also