Debian Codegraph @

upstream/debian-unstable/man3/ordchr.3am

raw
1 .TH ORDCHR 3am "Feb 02 2018" "Free Software Foundation" "GNU Awk Extension Modules"
2 .SH NAME
3 ordchr \- convert characters to strings and vice versa
4 .SH SYNOPSIS
5 .ft CW
6 @load "ordchr"
7 .sp
8 number = ord("A")
9 .br
10 string = chr(65)
11 .ft R
12 .SH DESCRIPTION
13 The
14 .I ordchr
15 extension adds two functions named
16 .BR ord() .
17 and
18 .BR chr() ,
19 as follows.
20 .TP
21 .B ord()
22 This function takes a string argument, and returns the
23 numeric value of the first character in the string.
24 .TP
25 .B chr()
26 This function takes a numeric argument and returns a string
27 whose first character is that represented by the number.
28 .PP
29 These functions are inspired by the Pascal language functions
30 of the same name.
31 .\" .SH NOTES
32 .\" .SH BUGS
33 .SH EXAMPLE
34 .ft CW
35 .nf
36 @load "ordchr"
37 \&...
38 printf("The numeric value of 'A' is %d\en", ord("A"))
39 printf("The string value of 65 is %s\en", chr(65))
40 .fi
41 .ft R
42 .SH "SEE ALSO"
43 .IR "GAWK: Effective AWK Programming" ,
44 .IR filefuncs (3am),
45 .IR fnmatch (3am),
46 .IR fork (3am),
47 .IR inplace (3am),
48 .IR readdir (3am),
49 .IR readfile (3am),
50 .IR revoutput (3am),
51 .IR rwarray (3am),
52 .IR time (3am).
53 .SH AUTHOR
54 Arnold Robbins,
55 .BR [email protected] .
56 .SH COPYING PERMISSIONS
57 Copyright \(co 2012, 2013, 2018,
58 Free Software Foundation, Inc.
59 .PP
60 Permission is granted to make and distribute verbatim copies of
61 this manual page provided the copyright notice and this permission
62 notice are preserved on all copies.
63 .ig
64 Permission is granted to process this file through troff and print the
65 results, provided the printed document carries copying permission
66 notice identical to this one except for the removal of this paragraph
67 (this paragraph not being relevant to the printed manual page).
68 ..
69 .PP
70 Permission is granted to copy and distribute modified versions of this
71 manual page under the conditions for verbatim copying, provided that
72 the entire resulting derived work is distributed under the terms of a
73 permission notice identical to this one.
74 .PP
75 Permission is granted to copy and distribute translations of this
76 manual page into another language, under the above conditions for
77 modified versions, except that this permission notice may be stated in
78 a translation approved by the Foundation.
79 .\" vim: set filetype=nroff :