xt_strlbasecpy(3)

LIBRARY
#include <xtend/string.h>
-lxtend

SYNOPSIS
char   *xt_strlbasecpy(char *dest, const char *dest_base, const char *src,
size_t dstsize)

ARGUMENTS
dest:       Address to which src is copied
dest_base:  Base address of the array containing dest address
src:        Address of null-terminated string to be copied
dstsize:    Size of the dest array

DESCRIPTION
xt_strlbasecpy() is a convenience for copying a string to a non-zero starting position in another string. The caller provides the address of the destination to which string should be copied, the base address of the array containing the destination, and the TOTAL length of the destination array. xt_strlbasecpy() then computes the distance from the destination address to the end of the array and like strlcpy(), prevents overrun from occurring.

RETURN VALUES
The original value of dest

SEE ALSO
strlcpy(3)