LCHARB - replace BCD character in string.

Alternate Entry Name: .LCHAB

Usage:

B:
   newch = lcharb( string, pos, newch );
C:
   int lcharb(void *string, int pos, int newch);

Where:

string
is a pointer to the beginning of a vector containing BCD characters.
pos
is a number indicating the position of the desired character in the string. The initial character of "string" is in position zero, the next character is in position one, and so on.
newch
is the new six-bit character to be placed in the string.

Examples:

ch = lcharb( bcdstr, 2, 020 );
/* replaces 3rd BCD character by a BCD blank */

Description:

LCHARB is used to replace a character in a BCD "string". It returns the character it placed in "string".

Copyright © 1996, Thinkage Ltd.