Project/Real_code/gnu/coreutils-5.0/src/ls.c
static size_t
format_user (char *buffer, uid_t u)
{
  char const *name = (numeric_ids ? NULL : getuser (u));
  if (name)
    sprintf (buffer, "%-8s ", name);
  else
    sprintf (buffer, "%-8lu ", (unsigned long) u);
  return strlen (buffer);
}
/* Format into BUFFER the name or id of the user with id U.  Return
   the length of the formatted buffer, not counting the terminating
   null.  */
Format into BUFFER the name or id of the user with id U.  Return
the length of the formatted buffer, not counting the terminating
null.
Format into BUFFER the name or id of the user with id U . Return the length of the formatted buffer not counting the terminating null .
static size_t
format_user (char *buffer, uid_t u)
{
  char const *name = (numeric_ids ? NULL : getuser (u));
  if (name)
    sprintf (buffer, "%-8s ", name);
  else
    sprintf (buffer, "%-8lu ", (unsigned long) u);
  return strlen (buffer);
}
static size_t format_user ( char * buffer , uid_t u ) { char const * name = ( numeric_ids ? NULL : getuser ( u ) ) ; if ( name ) sprintf ( buffer , " " , name ) ; else sprintf ( buffer , " " , ( unsigned long ) u ) ; return strlen ( buffer ) ; }
Format into BUFFER the name or id of the user with id U.
Format into BUFFER the name or id of the user with id U .