10.2 General Programming

This section presents a number of functions that are of general programming use.

Strtonum Function    A replacement for the built-in

strtonum() function.

Assert Function    A function for assertions in awk


Round Function    A function for rounding if sprintf()

does not do it correctly.

Cliff Random Function    The Cliff Random Number Generator.
Ordinal Functions    Functions for using characters as numbers and

vice versa.

Join Function    A function to join an array into a string.
Getlocaltime Function    A function to get formatted times.
Readfile Function    A function to read an entire file at once.
Shell Quoting    A function to quote strings for the shell.