In file miscfx.h:(char* s, char* table)
Performs character-for-character string translation.
Documentation
Performs character-for-character string translation.
- Parameters:
- s - A string to translate.
table - A translation table. This is a char array with 256
elements. Translation of character x is done by the expression
table[x]!=0 ? table[x] : x. That is, the x-th element of table
holds the new value of character with ASCII code x. If the x-th
element of table is zero, the character is not translated. This is
done for convenience to the programmer.
- Returns:
- A pointer to s with the characters translated as above. It
should be obvious that this is a destructive function! The translated
string overwrites the original one.
- See Also:
- faststgxlate()
Alphabetic index
This page was generated with the help of DOC++.