Blame extension/ordchr.3am

Packit 575503
.TH ORDCHR 3am "Jan 15 2013" "Free Software Foundation" "GNU Awk Extension Modules"
Packit 575503
.SH NAME
Packit 575503
ordchr \- convert characters to strings and vice versa
Packit 575503
.SH SYNOPSIS
Packit 575503
.ft CW
Packit 575503
@load "ordchr"
Packit 575503
.sp
Packit 575503
number = ord("A")
Packit 575503
.br
Packit 575503
string = chr(65)
Packit 575503
.ft R
Packit 575503
.SH DESCRIPTION
Packit 575503
The
Packit 575503
.I ordchr
Packit 575503
extension adds two functions named
Packit 575503
.BR ord() .
Packit 575503
and
Packit 575503
.BR chr() ,
Packit 575503
as follows.
Packit 575503
.TP
Packit 575503
.B ord()
Packit 575503
This function takes a string argument, and returns the
Packit 575503
numeric value of the first character in the string.
Packit 575503
.TP
Packit 575503
.B chr()
Packit 575503
This function takes a numeric argument and returns a string
Packit 575503
whose first character is that represented by the number.
Packit 575503
.PP
Packit 575503
These functions are inspired by the Pascal language functions
Packit 575503
of the same name.
Packit 575503
.\" .SH NOTES
Packit 575503
.\" .SH BUGS
Packit 575503
.SH EXAMPLE
Packit 575503
.ft CW
Packit 575503
.nf
Packit 575503
@load "ordchr"
Packit 575503
\&...
Packit 575503
printf("The numeric value of 'A' is %d\en", ord("A"))
Packit 575503
printf("The string value of 65 is %s\en", chr(65))
Packit 575503
.fi
Packit 575503
.ft R
Packit 575503
.SH "SEE ALSO"
Packit 575503
.IR "GAWK: Effective AWK Programming" ,
Packit 575503
.IR filefuncs (3am),
Packit 575503
.IR fnmatch (3am),
Packit 575503
.IR fork (3am),
Packit 575503
.IR inplace (3am),
Packit 575503
.IR readdir (3am),
Packit 575503
.IR readfile (3am),
Packit 575503
.IR revoutput (3am),
Packit 575503
.IR rwarray (3am),
Packit 575503
.IR time (3am).
Packit 575503
.SH AUTHOR
Packit 575503
Arnold Robbins,
Packit 575503
.BR arnold@skeeve.com .
Packit 575503
.SH COPYING PERMISSIONS
Packit 575503
Copyright \(co 2012, 2013,
Packit 575503
Free Software Foundation, Inc.
Packit 575503
.PP
Packit 575503
Permission is granted to make and distribute verbatim copies of
Packit 575503
this manual page provided the copyright notice and this permission
Packit 575503
notice are preserved on all copies.
Packit 575503
.ig
Packit 575503
Permission is granted to process this file through troff and print the
Packit 575503
results, provided the printed document carries copying permission
Packit 575503
notice identical to this one except for the removal of this paragraph
Packit 575503
(this paragraph not being relevant to the printed manual page).
Packit 575503
..
Packit 575503
.PP
Packit 575503
Permission is granted to copy and distribute modified versions of this
Packit 575503
manual page under the conditions for verbatim copying, provided that
Packit 575503
the entire resulting derived work is distributed under the terms of a
Packit 575503
permission notice identical to this one.
Packit 575503
.PP
Packit 575503
Permission is granted to copy and distribute translations of this
Packit 575503
manual page into another language, under the above conditions for
Packit 575503
modified versions, except that this permission notice may be stated in
Packit 575503
a translation approved by the Foundation.
Packit 575503
.\" vim: set filetype=nroff :