
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>delchrs</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DELCHRS
. Summary
delchrs(str <s>, int <pos>, int <num>);
. Description
The delchrs function is used to remove or delete a number of charac-
ters in a string at a certain position. <s> is the string to handle.
<pos> is the position at which <num> characters will be deleted
(note that the first characters in a SALT string has the position
0). Remaining characters in the string are be shifted left.
. Return Value
None.
. Example
// remove all but the first and last characters in a string
str s[] = "0123456789";
delchrs(s, 1, strlen(s) - 2);
See Also: inschrs
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson