kernel/acpica/compiler/cvcompiler.c
/*******************************************************************************
 *
 * FUNCTION:    CvAppendInlineComment
 *
 * PARAMETERS:  InlineComment      - Append to the end of this string.
 *              toAdd              - Contains the comment to be inserted
 *
 * RETURN:      Str                - toAdd appended to InlineComment
 *
 * DESCRIPTION: Concatenate ToAdd to InlineComment
 *
 ******************************************************************************/
CvAppendInlineComment
PARAMETERS:  InlineComment      - Append to the end of this string.
toAdd              - Contains the comment to be inserted

Str                - toAdd appended to InlineComment


CvAppendInlineComment PARAMETERS : InlineComment - Append to the end of this string . toAdd - Contains the comment to be inserted Str - toAdd appended to InlineComment
char *
CvAppendInlineComment (
    char                    *InlineComment,
    char                    *ToAdd)
{
    char*                   Str;
    UINT32                  Size = 0;
    if (!InlineComment)
    {
        return (ToAdd);
    }
    if (!ToAdd)
    {
        return (InlineComment);
    }
    Size = strlen (ToAdd);
    Size += strlen (InlineComment);
    Str = UtStringCacheCalloc (Size + 1);
    strcpy (Str, InlineComment);
    strcat (Str, ToAdd);
    Str[Size +1] = 0;
    return (Str);
}
char * CvAppendInlineComment ( char * InlineComment , char * ToAdd ) { char * Str ; UINT32 Size = 0 ; if ( ! InlineComment ) { return ( ToAdd ) ; } if ( ! ToAdd ) { return ( InlineComment ) ; } Size = strlen ( ToAdd ) ; Size += strlen ( InlineComment ) ; Str = UtStringCacheCalloc ( Size + 1 ) ; strcpy ( Str , InlineComment ) ; strcat ( Str , ToAdd ) ; Str [ Size + 1 ] = 0 ; return ( Str ) ; }
FUNCTION:    CvAppendInlineComment
 PARAMETERS:  InlineComment      - Append to the end of this string.
FUNCTION : CvAppendInlineComment PARAMETERS : InlineComment - Append to the end of this string .