Project/Real_code/gnu/coreutils-5.0/src/ls.c
static void
indent (int from, int to)
{
  while (from < to)
    {
      if (tabsize > 0 && to / tabsize > (from + 1) / tabsize)
	{
	  putchar ('\t');
	  from += tabsize - from % tabsize;
	}
      else
	{
	  putchar (' ');
	  from++;
	}
    }
}
/* Assuming cursor is at position FROM, indent up to position TO.
   Use a TAB character instead of two or more spaces whenever possible.  */
Assuming cursor is at position FROM, indent up to position TO.
Use a TAB character instead of two or more spaces whenever possible.
Assuming cursor is at position FROM indent up to position TO . Use a TAB character instead of two or more spaces whenever possible .
static void
indent (int from, int to)
{
  while (from < to)
    {
      if (tabsize > 0 && to / tabsize > (from + 1) / tabsize)
	{
	  putchar ('\t');
	  from += tabsize - from % tabsize;
	}
      else
	{
	  putchar (' ');
	  from++;
	}
    }
}
static void indent ( int from , int to ) { while ( from < to ) { if ( tabsize > 0 && to / tabsize > ( from + 1 ) / tabsize ) { putchar ( ' \t ' ) ; from += tabsize - from % tabsize ; } else { putchar ( ' ' ) ; from ++ ; } } }
Assuming cursor is at position FROM, indent up to position TO.
Assuming cursor is at position FROM indent up to position TO .