pmPathSeparator(3)

pmPathSeparator3

Return the filesystem path separator character

C synopsis

#include <pcp/pmapi.h>

int pmPathSeparator(void);

cc ... -lpcp

Overview

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.

Releases

5 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11–13
  3. Arch

From pcp 7.2.2-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.