# PXFCTERMID (L*X, M*X)

POSIX Subroutine: Generates a terminal pathname.

## Module

USE IFPOSIX

CALL PXFCTERMID (s,ilen,ierror)

s | (Output) Character. The returned pathname of the terminal.
ilen | (Output) INTEGER(4). The length of the returned value in the s string.
ierror | (Output) INTEGER(4). The error status.

If successful, ierroris set to zero; otherwise, an error code.

This subroutine returns a string that refers to the current controlling terminal for the current process.

Parent topic: POSIX* Library Routines