Back to index

cell-binutils  2.17cvs20070401
Functions
stpncpy.c File Reference
#include <ansidecl.h>
#include <stddef.h>

Go to the source code of this file.

Functions

size_t strlen (const char *)
char * strncpy (char *, const char *, size_t)
char * stpncpy (char *dst, const char *src, size_t len)

Function Documentation

char* stpncpy ( char *  dst,
const char *  src,
size_t  len 
)

Definition at line 41 of file stpncpy.c.

{
  size_t n = strlen (src);
  if (n > len)
    n = len;
  return strncpy (dst, src, len) + n;
}

Here is the call graph for this function:

size_t strlen ( const char *  )
char* strncpy ( char *  ,
const char *  ,
size_t   
)