1ORDCHR(3am)                GNU Awk Extension Modules               ORDCHR(3am)
2
3
4

NAME

6       ordchr - convert characters to strings and vice versa
7

SYNOPSIS

9       @load "ordchr"
10
11       number = ord("A")
12       string = chr(65)
13

DESCRIPTION

15       The  ordchr  extension  adds  two functions named ord().  and chr(), as
16       follows.
17
18       ord()  This function takes a string argument, and returns  the  numeric
19              value of the first character in the string.
20
21       chr()  This  function  takes  a  numeric  argument and returns a string
22              whose first character is that represented by the number.
23
24       These functions are inspired by the Pascal language  functions  of  the
25       same name.
26

EXAMPLE

28       @load "ordchr"
29       ...
30       printf("The numeric value of 'A' is %d\n", ord("A"))
31       printf("The string value of 65 is %s\n", chr(65))
32

SEE ALSO

34       GAWK:   Effective   AWK   Programming,   filefuncs(3am),  fnmatch(3am),
35       fork(3am), inplace(3am), readdir(3am),  readfile(3am),  revoutput(3am),
36       rwarray(3am), time(3am).
37

AUTHOR

39       Arnold Robbins, arnold@skeeve.com.
40

COPYING PERMISSIONS

42       Copyright © 2012, 2013, 2018, Free Software Foundation, Inc.
43
44       Permission  is  granted  to make and distribute verbatim copies of this
45       manual page provided the copyright notice and  this  permission  notice
46       are preserved on all copies.
47
48       Permission  is granted to copy and distribute modified versions of this
49       manual page under the conditions for verbatim  copying,  provided  that
50       the  entire  resulting derived work is distributed under the terms of a
51       permission notice identical to this one.
52
53       Permission is granted to copy and distribute translations of this  man‐
54       ual page into another language, under the above conditions for modified
55       versions, except that this permission notice may be stated in a  trans‐
56       lation approved by the Foundation.
57
58
59
60Free Software Foundation          Feb 02 2018                      ORDCHR(3am)
Impressum