Short: Convert numbers to words w/source Author: Chris F.A. Johnson Uploader: Chris F.A. Johnson Type: dev/c Requires: ANSI C compiler (on almost any system); binary requires an Amiga and ixemul.library This program is released under the GNU General Public Licence. Usage: n2w [OPTIONS] num [num ...] OPTIONS: -$ display as dollars and cents -U units, --units=units print "units" after number -u, --nand, --US do not use "and" after "hundred", etc. -&, --ampersand use "&" instead of "and" after "hundred", etc. --help display this help and exit -v, --verbose set verbose mode on -Vn, --verbose=n set level of verbosity --version output version information and exit Options may be placed anywhere on the command line EXCEPT that a negative number must be preceded by "--" (to indicate end of dashed options). BUGS: No warning is given if number supplied exceeds the limit Copyright 2000, Chris F.A. Johnson EXAMPLES: n2w 21 => twenty-one n2w 4.56 => four point five six n2w -$ 21 => twenty-one dollars only n2w --dollars 4.56 => four dollars and 56 cents n2w -U degrees 21 => twenty-one degrees n2w -U degrees 4.56 => four point five six degrees Files included in this package: n2w-main.c - command line interface for n2w() n2w.c - n2w() can be used in your own progs. n2w.h - header to #include in order to use nw2() Makefile - Makefile for command line prog. (gcc) defs.h - miscellaneous macros & defines getopt.c \ GNU source for getopt, getopt_long, etc. getopt.h |- allowing long options and options getopt1.c / anywhere on the command line n2w.readme - this file n2w.readme - the bare bones of this file n2w - Amiga binary (should run on any Amiga, I think) COPYING - GNU General Public Licence ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 17982 6993 61.1% 05-Jan-00 06:22:18 +COPYING 2932 1174 59.9% 05-Jan-00 06:22:18 +defs.h 21723 7378 66.0% 05-Jan-00 06:22:16 +getopt.c 4412 1807 59.0% 05-Jan-00 06:22:16 +getopt.h 4228 1712 59.5% 05-Jan-00 06:22:16 +getopt1.c 373 163 56.3% 05-Jan-00 06:22:16 +Makefile 39184 16931 56.7% 05-Jan-00 06:24:20 +n2w 3674 1513 58.8% 05-Jan-00 06:22:18 +n2w-main.c 6275 2085 66.7% 05-Jan-00 06:22:18 +n2w.c 3246 1567 51.7% 05-Jan-00 06:22:18 +n2w.doc 1737 896 48.4% 05-Jan-00 06:22:18 +n2w.h 1949 965 50.4% 05-Jan-00 06:22:18 +n2w.readme -------- ------- ----- --------- -------- 107715 43184 59.9% 06-Jan-100 23:17:20 12 files