dpkg 1.22.7-3-g89f48
Loading...
Searching...
No Matches
Functions
path.c File Reference

(14d2ed4cf)

#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 ‘/.
 
const char * path_skip_slash_dotslash (const char *path)
 Skip ‘/’ and ‘.
 
const char * path_basename (const char *path)
 Return the last component of a pathname.
 
char * path_make_temp_template (const char *suffix)
 Create a template for a temporary pathname.
 
char * path_quote_filename (char *dst, const char *src, size_t n)
 Escape characters in a pathname for safe locale printing.