Back to index

lightning-sunbird  0.9+nobinonly
Functions
strcat.c File Reference
#include "plstr.h"
#include <string.h>

Go to the source code of this file.

Functions

 PL_strcat (char *dest, const char *src)
 PL_strncat (char *dest, const char *src, PRUint32 max)
 PL_strcatn (char *dest, PRUint32 max, const char *src)

Function Documentation

PL_strcat ( char *  dest,
const char *  src 
)

Definition at line 42 of file strcat.c.

{
    if( ((char *)0 == dest) || ((const char *)0 == src) )
        return dest;

    return strcat(dest, src);
}

Here is the caller graph for this function:

PL_strcatn ( char *  dest,
PRUint32  max,
const char *  src 
)

Definition at line 66 of file strcat.c.

{
    char *rv;
    PRUint32 dl;

    if( ((char *)0 == dest) || ((const char *)0 == src) )
        return dest;

    for( rv = dest, dl = 0; *dest; dest++, dl++ )
        ;

    if( max <= dl ) return rv;
    (void)PL_strncpyz(dest, src, max-dl);

    return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function:

PL_strncat ( char *  dest,
const char *  src,
PRUint32  max 
)

Definition at line 51 of file strcat.c.

{
    char *rv;

    if( ((char *)0 == dest) || ((const char *)0 == src) || (0 == max) )
        return dest;

    for( rv = dest; *dest; dest++ )
        ;

    (void)PL_strncpy(dest, src, max);
    return rv;
}

Here is the call graph for this function:

Here is the caller graph for this function: