CHARODD()
Returns the characters on the odd positions in a string
- Syntax
-
- CHARODD (<cString>) --> cOddString
- Arguments
-
- <cString> processed string
- Returns
-
- <cOddString> a string containing all character from odd positions in <cString>
- Description
-
- The CHARODD() function looks for the characters on the odd positions in a given string, collects them and returns them as a string.
Examples
? CHARODD ("H E L L O ! ") -> "HELLO!"
Tests
CHARODD ("1A2B3C4D5E") == "12345"
CHARODD ("1A2B3C4D5") == "12345"
- Status
- Ready
- Compliance
-
- CHARODD() is compatible with CT3's CHARODD().
- Platforms
-
- All
- Files
-
- Source is charevod.c, library is ct3.
- See Also