mangle_path(9)

mangle_path9

Mangle and copy path to buffer beginning

Usage

char * mangle_path(char * s, const char * p, const char * esc);

Arguments

s

buffer start

p

beginning of path in above buffer

esc

set of characters that need escaping

Overview

Copy the path from p to s, replacing each occurrence of character from esc with usual octal escape. Returns pointer past last written character in s, or NULL in case of failure.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.