mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
27 lines
343 B
Plaintext
27 lines
343 B
Plaintext
NAME
|
|
ord - return integer corresponding to character value
|
|
|
|
SYNOPSIS
|
|
ord(c)
|
|
|
|
TYPES
|
|
c string
|
|
|
|
return int
|
|
|
|
DESCRIPTION
|
|
Return the integer value of the first character of a string.
|
|
|
|
EXAMPLE
|
|
> print ord("DBell"), ord("chongo"), ord("/\../\"), ord("!")
|
|
68 99 47 33
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
char
|