Setting the Number of Spaces Between Tab Stops

When a tab character ('\t') is encountered in a string, the string output functions will expand the tab to spaces. Enough spaces are added to get to the next tab stop.

The number of spaces between tabs is controlled by a global variable. The system, by default, sets the number of spaces between tabs to 8. You can change this value with the set tab quantity function, se_tabq():

se_tabq(tabq)

int tabq;        /* Number of spaces to the next tab        */


Home Contents Previous Next