Linux Kernel
3.7.1
|
#include "cache.h"
Go to the source code of this file.
Functions | |
size_t | strlcpy (char *dest, const char *src, size_t size) |
char * | perf_pathdup (const char *fmt,...) |
char * | mkpath (const char *fmt,...) |
char * | perf_path (const char *fmt,...) |
char * | strip_path_suffix (const char *path, const char *suffix) |
strlcpy - Copy a NUL terminated string into a sized buffer : Where to copy the string to : Where to copy the string from : size of destination buffer
Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.