---
name: "pmpathseparator"
section: "3"
platform: "linux"
package: "libpcp3-dev"
version: "4.3.2+really4.3.1-0.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pmPathSeparator"
---

# pmpathseparator(3)

return the filesystem path separator character

Part of [pmPathSeparator(3)](/pmPathSeparator/3.md).

## NAME

**pmPathSeparator** - return the filesystem path separator character

## C SYNOPSIS

**#include \<pcp/pmapi.h\>**

**int pmPathSeparator(void);**

**cc ... -lpcp**

## DESCRIPTION

**pmPathSeparator** is a convenience method that returns \`\`/'' in  the civilized world. For Windows platforms you may get \`\`/'' or \`\`\\'' depending on the run-time environment.

The most common use scenario is to use **pmPathSeparator** to construct the full pathname for a file from a known directory name and a relative file name.
