Logo Search packages:      
Sourcecode: bsd-mailx version File versions  Download package

bsd_utils.h

#ifndef BSD_UTLIS_H
#define BSD_UTILS_H

/*
 * Appends src to string dst of size siz (unlike strncat, siz is the
 * full size of dst, not space left).  At most siz-1 characters
 * will be copied.  Always NUL terminates (unless siz <= strlen(dst)).
 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
 * If retval >= siz, truncation occurred.
 */
extern size_t strlcat(char *, const char *, size_t);

/*
 * Copy src to string dst of size siz.  At most siz-1 characters
 * will be copied.  Always NUL terminates (unless siz == 0).
 * Returns strlen(src); if retval >= siz, truncation occurred.
 */
extern size_t strlcpy(char *, const char *, size_t);

#endif /* BSD_UTILS_H */

Generated by  Doxygen 1.6.0   Back to index