NAME $1 - SYNOPSIS DESCRIPTION IMPLEMENTATION SEE ALSO ARGUMENTS MODIFIED CALLS BUGS convert ASCII mnemonic to character character function mntoc (buf, p, default) character buf (ARB), default integer p 'Mntoc' is used to convert a standard ASCII mnemonic (e.g. ACK, BEL, BS) into an ASCII character code. The argument 'buf' is an EOS-terminated string presumed to contain either a single character or a two- or three-character ASCII mnemonic (in either upper or lower case), starting at position 'p'. The function return depends on the outcome of the conversion as follows: (1) if 'buf' contains only one character, the function return is equivalent to that character; (2) if 'buf' contains an ASCII mnemonic terminated by a nonalphanumeric character, the function return is the character code associated with that mnemonic; (3) otherwise, the function return is equivalent to the character specified as the third argument ('default'). In all cases, 'p' is advanced to the first character beyond the presumed mnemonic or single character. The mnemonic is transferred to an internal character buffer, then used in a search of a string table containing the ASCII mnemonics. p lower ctomn (2)