NetBSD/usr.bin/units
mark d786999078 Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-04-01 21:43:53 +00:00
..
Makefile
README
pathnames.h
units.1
units.c Use an integer instead of a char to store the getopt() return value in 1996-04-01 21:43:53 +00:00
units.lib fix bugs (missing spaces) in definitions of nmile an Xunit, as pointed 1995-08-13 03:25:54 +00:00

README

#	NetBSD $Id: README,v 1.1 1993/10/27 03:31:51 cgd Exp $

This is a program which I wrote as a clone of the UNIX 'units'
command.  I threw it together in a couple days, but it seems to work,
with some restrictions.  I have tested it under DOS with Borland C and
Ultrix 4.2, and SunOS 4.1.  

This program differs from the unix units program in the following
ways:
   it can gracefully handle exponents larger than 9 in output
   it uses 'e' to denote exponentiation in numbers
   prefixes are listed in the units file
   it tries both -s and -es plurals
   it allows use of * for multiply and ^ for exponentiation in the input
   the output format is somewhat different

Adrian Mariano (adrian@cam.cornell.edu or mariano@geom.umn.edu)