if (fprintf (stream, "%c%s", i == 0 ? ':' : ',', gr->gr_mem[i]) < 0)
if (fprintf (stream, i == 0 ? "%s" : ",%s", gr->gr_mem[i]) < 0)
putgrent (gr, stream)     const struct group *gr;     FILE *stream;{  int retval;  if (gr == NULL || stream == NULL)    {      __set_errno (EINVAL);      return -1;    }  flockfile (stream);  retval = fprintf (stream, "%s:%s:%u:",		    gr->gr_name, _S (gr->gr_passwd), gr->gr_gid);  if (retval < 0)    return -1;  if (gr->gr_mem != NULL)    {      int i;      for (i = 0 ; gr->gr_mem[i] != NULL; i++)	if (fprintf (stream, "%c%s", i == 0 ? ':' : ',', gr->gr_mem[i]) < 0)	  {	    /* What else can we do?  */	    funlockfile (stream);	    return -1;	  }    }  retval = fputc_unlocked ('\n', stream);  funlockfile (stream);  return retval < 0 ? -1 : 0;}