---
name: "mangle_path"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/mangle_path"
---

# mangle\_path(9)

mangle and copy path to buffer beginning

## NAME

mangle\_path - mangle and copy path to buffer beginning

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
