LCHAR - replace ASCII character in string.

Alternate Entry Name: .LCHAR

Usage:

B:
   newch = lchar( string, pos, newch );
/* C users use subscripting */

Where:

string
is a pointer to the beginning of an ASCII string.
pos
is a number indicating the position in the string of the nine-bit character you wish to replace. The initial character is in position zero, the next character is in position one, and so on.
newch
is the new nine-bit character to be placed in the string.

Examples:

ch = lchar( asciistr, 2, ' ' );
/* replaces 3rd ASCII character by an ASCII blank */

Description:

LCHAR is used to replace a character in a string. It returns the character it placed in the string.

See Also:

expl b string

expl b lib char

Copyright © 1996, Thinkage Ltd.