if (strlen (string) >= len)  { strncpy (buff, string, len-1); buff[len] = '\0'; } else {
{ if (strlen (string) >= len)  { strncpy (buff, string, len-1); buff[len] = '\0'; } else
char *str_in_buff (char *buff, int len, char *string){  if (string)    if (strlen (string) >= len) /* does not include \0 */      {	strncpy (buff, string, len-1);	buff[len] = '\0';      }    else      {	strcpy (buff, string);      }  else    strcpy (buff, "");  return (buff);}