pmPathSeparator(3)

return the filesystem path separator character

Section 3 libpcp3-dev bookworm source

Description

PMPATHSEPARATOR

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.