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

Function get_space

src/fmt.c:771–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

769 in_column up-to-date. Return first non-blank character. */
770
771static int
772get_space (FILE *f, int c)
773{
774 while (true)
775 {
776 if (c == ' ')
777 in_column++;
778 else if (c == '\t')
779 {
780 tabs = true;
781 in_column = (in_column / TABWIDTH + 1) * TABWIDTH;
782 }
783 else
784 return c;
785 c = getc (f);
786 }
787}
788
789/* Set extra fields in word W describing any attached punctuation. */
790

Callers 2

get_lineFunction · 0.85
get_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected