libcfe  0.12.1
some useful C-functions
ustrncpy.c File Reference
#include "config.h"
#include "ustrncpy.h"
Include dependency graph for ustrncpy.c:

Go to the source code of this file.

Functions

size_t ustrncpy (unsigned char *dest, const char *src, size_t n)
 

Function Documentation

◆ ustrncpy()

size_t ustrncpy ( unsigned char *  dest,
const char *  src,
size_t  n 
)

Copy n characters of a string to a new unsigned string.

Parameters
[in,out]destPointer to an allocated place to hold the string.
[in]srcPointer to the original string.
[in]nNumber of characters to copy.
Returns
Number of characters copied.

Definition at line 4 of file ustrncpy.c.