m3-sys/m3cc/gcc-4.5/gcc/c-common.c
/* Subroutine of c_parse_error.
   Return the result of concatenating LHS and RHS. RHS is really
   a string literal, its first character is indicated by RHS_START and
   RHS_SIZE is its length (including the terminating NUL character).

   The caller is responsible for deleting the returned pointer.  */


The caller is responsible for deleting the returned pointer.
The caller is responsible for deleting the returned pointer .
static char *
catenate_strings (const char *lhs, const char *rhs_start, int rhs_size)
{
  const int lhs_size = strlen (lhs);
  char *result = XNEWVEC (char, lhs_size + rhs_size);
  strncpy (result, lhs, lhs_size);
  strncpy (result + lhs_size, rhs_start, rhs_size);
  return result;
}
static char * catenate_strings ( const char * lhs , const char * rhs_start , int rhs_size ) { const int lhs_size = strlen ( lhs ) ; char * result = XNEWVEC ( char , lhs_size + rhs_size ) ; strncpy ( result , lhs , lhs_size ) ; strncpy ( result + lhs_size , rhs_start , rhs_size ) ; return result ; }
Subroutine of c_parse_error.
Subroutine of c_parse_error .