Project/Real_code/gnu/coreutils-5.0/src/ls.c
static void
print_current_files (void)
{
  register int i;

  switch (format)
    {
    case one_per_line:
      for (i = 0; i < files_index; i++)
	{
	  print_file_name_and_frills (files + i);
	  putchar ('\n');
	}
      break;

    case many_per_line:
      init_column_info ();
      print_many_per_line ();
      break;

    case horizontal:
      init_column_info ();
      print_horizontal ();
      break;

    case with_commas:
      print_with_commas ();
      break;

    case long_format:
      for (i = 0; i < files_index; i++)
	{
	  print_long_format (files + i);
	  DIRED_PUTCHAR ('\n');
	}
      break;
    }
}
/* List all the files now in the table.  */
List all the files now in the table.
List all the files now in the table .
static void
print_current_files (void)
{
  register int i;
  switch (format)
    {
    case one_per_line:
      for (i = 0; i < files_index; i++)
	{
	  print_file_name_and_frills (files + i);
	  putchar ('\n');
	}
      break;
    case many_per_line:
      init_column_info ();
      print_many_per_line ();
      break;
    case horizontal:
      init_column_info ();
      print_horizontal ();
      break;
    case with_commas:
      print_with_commas ();
      break;
    case long_format:
      for (i = 0; i < files_index; i++)
	{
	  print_long_format (files + i);
	  DIRED_PUTCHAR ('\n');
	}
      break;
    }
}
static void print_current_files ( void ) { register int i ; switch ( format ) { case one_per_line : for ( i = 0 ; i < files_index ; i ++ ) { print_file_name_and_frills ( files + i ) ; putchar ( ' \n ' ) ; } break ; case many_per_line : init_column_info ( ) ; print_many_per_line ( ) ; break ; case horizontal : init_column_info ( ) ; print_horizontal ( ) ; break ; case with_commas : print_with_commas ( ) ; break ; case long_format : for ( i = 0 ; i < files_index ; i ++ ) { print_long_format ( files + i ) ; DIRED_PUTCHAR ( ' \n ' ) ; } break ; } }
List all the files now in the table.
List all the files now in the table .