[UP]


Manual Reference Pages  - separator (3)

NAME

separator(3f) - [M_io:ENVIRONMENT] try to determine pathname directory separator character (LICENSE:PD)

CONTENTS

Synopsis
Description
Example

SYNOPSIS

function separator() result(sep)

    character(len=1) :: sep

DESCRIPTION

Try to determine the separator character used to separate directory names from file basenames. It is assumed it is either a backslash or a slash character.
First, the environment variables PATH, HOME, PWD, and
  SHELL are examined for a backslash, then a slash.
Then, using the name the program was invoked with, then an INQUIRE(3f) of that name, then ".\NAME" and "./NAME" try to find an expected separator character.

Can be very system dependent. If the queries fail the default returned is "/".

The value is cached as a return value for subsequent calls.

EXAMPLE

sample usage

   program demo_separator
   use M_io, only : separator
   implicit none
      write(*,*)’separator=’,separator()
   end program demo_separator


separator (3) March 11, 2021
Generated by manServer 1.08 from b928779d-6115-4c33-b5be-3290c99d817b using man macros.