NAME
ordchr - convert characters to strings and vice versa
SYNOPSIS
@load "ordchr" number = ord("A") string = chr(65)
DESCRIPTION
The ordchr extension adds two functions named ord(). and chr(), as follows. ord() This function takes a string argument, and returns the numeric value of the first character in the string. chr() This function takes a numeric argument and returns a string whose first character is that represented by the number. These functions are inspired by the Pascal language functions of the same name.
EXAMPLE
@load "ordchr" ... printf("The numeric value of 'A' is %d\n", ord("A")) printf("The string value of 65 is %s\n", chr(65))
SEE ALSO
GAWK: Effective AWK Programming, filefuncs(3am), fnmatch(3am), fork(3am), inplace(3am), readdir(3am), readfile(3am), revoutput(3am), rwarray(3am), time(3am).
AUTHOR
Arnold Robbins, arnold@skeeve.com.
COPYING PERMISSIONS
Copyright 2012, 2013, Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual page provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual page under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual page into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Foundation.
More Linux Commands
manpages/strcasecmp.3.html
strcasecmp(3) - compare two strings ignoring case (ManPage)
The strcasecmp() function compares the two strings s1 and s2, ignoring the case of the characters. It returns an integer less than, equal to, or greater than ze
manpages/XevieSelectInput.3.html
XevieSelectInput(3) - X Event Interception Extension (XEvIE)
X Event Interception Extension (XEvIE) is designed for users who need to intercept all the Keyboard and Mouse events. Programs can determine which events should
manpages/XkbSASetPtrDfltValue.3.html
XkbSASetPtrDfltValue(3) - Sets the valueXXX field of act fro
XkbSASetPtrDfltValue.3 - Actions associated with the XkbPtrDfltAction structure change the mk_dflt_btn attribute of the MouseKeys control. If the MouseKeys cont
manpages/glMultiTexCoord1dvARB.3gl.html
glMultiTexCoord1dvARB(3gl) - set the current texture coordin
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1
manpages/pcre16_version.3.html
pcre16_version(3) Perl-compatible regular expressions.......
This function (even in the 16-bit and 32-bit libraries) returns a zero-terminated, 8-bit character string that gives the version number of the PCRE library and
manpages/ldap_mods_free.3.html
ldap_mods_free(3) - Perform an LDAP modify operation........
The routine ldap_modify_ext_s() is used to perform an LDAP modify operation. dn is the DN of the entry to modify, and mods is a null-terminated array of modific
manpages/gnutls_pubkey_init.3.html
gnutls_pubkey_init(3) - API function - Linux manual page....
This function will initialize an public key structure. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. SINCE 2.12.0 REPO
manpages/glGetString.3gl.html
glGetString(3gl) - (unknown subject) - Linux manual page....
glGetString returns a pointer to a static string describing some aspect of the current GL connection. name can be one of the following: GL_VENDOR Returns the co
manpages/vgmerge.8.html
vgmerge(8) - merge two volume groups - Linux manual page....
vgmerge merges two existing volume groups. The inactive SourceVolumeGroupName will be merged into the DestinationVolumeGroupName if physical extent sizes are eq
manpages/glsnake.6x.html
glsnake(6x) - OpenGL enhanced Rubik's Snake cyclewaster.....
glsnake is an imitation of Rubiks Snake, using OpenGL. OPTIONS glsnake accepts the following options: -window Draw on a newly-created window. This is the defaul
manpages/getservbyname.3.html
getservbyname(3) - get service entry - Linux manual page....
The getservent() function reads the next entry from the services database (see services(5)) and returns a servent structure containing the broken-out fields fro
manpages/tiffsv.1.html
tiffsv(1) save an image from the framebuffer in a TIFF file
tiffsv saves all or part of the framebuffer in a file using the Tag Image File Format, Revision 6.0. By default, the image is saved with data samples packed (Pl
