[UP]


Manual Reference Pages  - esc (3)

NAME

esc(3f) - [M_BRE] map array(i) into escaped character if appropriate

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
Reference
License

SYNOPSIS

integer function esc (array, i)
integer,intent(in) :: array(*)
integer
  :: i

DESCRIPTION

To support commonly used non-printable characters escaped strings are supported. When the ESCAPE character is encountered the following character is examined. If one of the special characters ESC(3f) will increment I and return the designated non-printable character. Otherwise it will return the character as-is.
o convert \n to newline
o convert \t to horizontal tab
o convert \r to carriage return
o convert \b to backspace
o convert \nnn to character represented by octal value

OPTIONS

ARRAY
  array of ADE (ASCII Decimal Equivalent) values terminated by an EOS (End-Of-String) character representing a string to scan for escaped characters.
I pointer into ARRAY. It is incremented to the position of the next character in ARRAY on return.

RETURNS

ESC The ADE for the substituted character

EXAMPLE

AUTHOR

John S. Urban

REFERENCE

"Software Tools" by Kernighan and Plauger , 1976

LICENSE

Public Domain


esc (3) May 20, 2020
Generated by manServer 1.08 from 5a073119-17af-4cf4-ac78-c1752ce0e2a2 using man macros.