MCPcopy Create free account
hub / github.com/coreutils/coreutils / indent

Function indent

src/ls.c:5200–5216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5198 Use a TAB character instead of two or more spaces whenever possible. */
5199
5200static void
5201indent (size_t from, size_t to)
5202{
5203 while (from < to)
5204 {
5205 if (tabsize != 0 && to / tabsize > (from + 1) / tabsize)
5206 {
5207 putchar ('\t');
5208 from += tabsize - from % tabsize;
5209 }
5210 else
5211 {
5212 putchar (' ');
5213 from++;
5214 }
5215 }
5216}
5217
5218/* Put DIRNAME/NAME into DEST, handling '.' and '/' properly. */
5219/* FIXME: maybe remove this function someday. See about using a

Callers 2

print_many_per_lineFunction · 0.85
print_horizontalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected