Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
path.c File Reference
#include "cache.h"

Go to the source code of this file.

Functions

size_t strlcpy (char *dest, const char *src, size_t size)
 
charperf_pathdup (const char *fmt,...)
 
charmkpath (const char *fmt,...)
 
charperf_path (const char *fmt,...)
 
charstrip_path_suffix (const char *path, const char *suffix)
 

Function Documentation

char* mkpath ( const char fmt,
  ... 
)

Definition at line 88 of file path.c.

char* perf_path ( const char fmt,
  ... 
)

Definition at line 102 of file path.c.

char* perf_pathdup ( const char fmt,
  ... 
)

Definition at line 78 of file path.c.

char* strip_path_suffix ( const char path,
const char suffix 
)

Definition at line 136 of file path.c.

size_t strlcpy ( char dest,
const char src,
size_t  size 
)

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.

Definition at line 26 of file path.c.