File: ascii_code.doc

package info (click to toggle)
hol88 2.02.19940316-15
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 65,928 kB
  • sloc: ml: 199,939; ansic: 9,666; sh: 7,118; makefile: 6,075; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (18 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\DOC ascii_code

\TYPE {ascii_code : (string -> int)}

\SYNOPSIS
Maps a character to corresponding ASCII numeric code.

\DESCRIBE
When given a string, {ascii_code} returns the numeric encoding in the
ASCII character set of the first character of that string.

\FAILURE
Fails if the string is empty ({``}).

\SEEALSO
ascii, int_of_string, is_alphanum, is_letter, string_of_int.

\ENDDOC