char_val

char_val --  generates a character's numeric value.

Syntax

char_val (char_as_string)

		

Arguments

char_as_string

A string.

Returns

The ASCII (numeric) value of the first character in the argument string.

Description

Generates the ASCII (numeric) representation of the first character in a string.

Example

    Gamma> char_val ("A");
    65
    Gamma> char_val ("q");
    113
    Gamma> char_val ("hope for all");
    104
    Gamma> char_val ("3");
    51
    Gamma> char_val ("ô");
    -12
    Gamma>  
    		

See Also

char

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.