CHAREVEN()

Returns the characters on the even positions in a string

Syntax

CHAREVEN (<cString>) --> cEvenString

Arguments

<cString> processed string

Returns

<cEvenString> a string containing all character from even positions in <cString>

Description

The CHAREVEN() function looks for the characters on the even positions in a given string, collects them and returns them as a string.
Examples
      ? CHAREVEN (" H E L L O !") -> "HELLO!"
Tests
      CHAREVEN (" 1 2 3 4 5") == "12345"
      CHAREVEN (" 1 2 3 4 ") == "1234"
      CHAREVEN (" ") == ""
Status

Ready

Compliance

CHAREVEN() is compatible with CT3's CHAREVEN().

Platforms

All

Files

Source is charevod.c, library is ct3.

See Also