'\" t .\" Title: mangle_path .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "MANGLE_PATH" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mangle_path \- mangle and copy path to buffer beginning .SH "SYNOPSIS" .HP \w'char\ *\ mangle_path('u .BI "char * mangle_path(char\ *\ " "s" ", const\ char\ *\ " "p" ", const\ char\ *\ " "esc" ");" .SH "ARGUMENTS" .PP \fIchar * s\fR .RS 4 buffer start .RE .PP \fIconst char * p\fR .RS 4 beginning of path in above buffer .RE .PP \fIconst char * esc\fR .RS 4 set of characters that need escaping .RE .SH "DESCRIPTION" .PP Copy the path from \fIp\fR to \fIs\fR, replacing each occurrence of character from \fIesc\fR with usual octal escape\&. Returns pointer past last written character in \fIs\fR, or NULL in case of failure\&. .SH "COPYRIGHT" .br