/builddir/build/BUILD/gru-0.2.0/src/string/gru_alt.c File Reference

#include "gru_alt.h"

Functions

size_t strlcpy (char *dst, const char *src, size_t len)
size_t strlcat (char *gru_restrict dst, const char *gru_restrict src, size_t size)
 Poor man's implementation of strlcat.
char * strndup (const char *source, size_t limit)
 Poor man's implementation of strndup (duplicate a string).

Function Documentation

size_t strlcat ( char *gru_restrict  dst,
const char *gru_restrict  src,
size_t  size 
)

Poor man's implementation of strlcat.

Parameters:
dst destination buffer
src source buffer
size amount of bytes to copy
Returns:
The total length of the string they tried to create
size_t strlcpy ( char *  dst,
const char *  src,
size_t  len 
)
char* strndup ( const char *  source,
size_t  limit 
)

Poor man's implementation of strndup (duplicate a string).

Parameters:
source source string
limit maximum number of bytes to copy
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 7 Jan 2019 for GRU - Generic Reusable Utilities by  doxygen 1.6.1