ordchr - convert characters to strings and vice versa


   @load "ordchr"

   number = ord("A")
   string = chr(65)


   The  ordchr  extension  adds  two functions named ord().  and chr(), as

   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.


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


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


   Arnold Robbins, arnold@skeeve.com.


   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

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

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

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

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

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

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

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

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

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

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

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

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

We can't live, work or learn in freedom unless the software we use is free.