dpkg 1.21.11
Functions
path.c File Reference

(0db77512a)

#include <config.h>
#include <compat.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <dpkg/dpkg.h>
#include <dpkg/path.h>
Include dependency graph for path.c:

Functions

size_t path_trim_slash_slashdot (char *path)
 Trim ‘/’ and ‘/. More...
 
const char * path_skip_slash_dotslash (const char *path)
 Skip ‘/’ and ‘. More...
 
const char * path_basename (const char *path)
 Return the last component of a pathname. More...
 
char * path_make_temp_template (const char *suffix)
 Create a template for a temporary pathname. More...
 
char * path_quote_filename (char *dst, const char *src, size_t n)
 Escape characters in a pathname for safe locale printing. More...