
Tue Jan 27 03:42:05 MST 2004

pick

zap

	no problems

	changed to macosx CFLAGS

	changed to macosx hardcoded command "ps -auxc"

	did not revise style of decl

	both commands seem  to work

	brought over man pages from server

	installed in bin and man1



compile output:

cc -Wall -ggdb -O -D_OLD_TERMIOS   -c -o zap.o zap.c
zap.c:16: warning: return type defaults to `int'
zap.c: In function `main':
zap.c:27: warning: implicit declaration of function `exit'
zap.c:32: warning: implicit declaration of function `strindex'
zap.c:34: warning: implicit declaration of function `strlen'
zap.c:36: warning: implicit declaration of function `ttyin'
cc -Wall -ggdb -O -D_OLD_TERMIOS   -c -o strindex.o strindex.c
cc -Wall -ggdb -O -D_OLD_TERMIOS   -c -o ttyin.o ttyin.c
ttyin.c: In function `ttyin':
ttyin.c:23: warning: implicit declaration of function `exit'
ttyin.c:27: warning: implicit declaration of function `system'
cc -Wall -ggdb -O -D_OLD_TERMIOS   -c -o efopen.o efopen.c
efopen.c: In function `efopen':
efopen.c:21: warning: implicit declaration of function `exit'
cc -Wall -ggdb -O -D_OLD_TERMIOS zap.o strindex.o ttyin.o efopen.o  -o zap
size zap
__TEXT	__DATA	__OBJC	others	dec	hex
8192	4096	0	16384	28672	7000
cc -Wall -ggdb -O -D_OLD_TERMIOS   -c -o pick.o pick.c
pick.c:13: warning: return type defaults to `int'
pick.c: In function `main':
pick.c:21: warning: implicit declaration of function `strcmp'
pick.c:25: warning: implicit declaration of function `strlen'
pick.c:26: warning: implicit declaration of function `pick'
pick.c:34: warning: implicit declaration of function `exit'
pick.c: At top level:
pick.c:39: warning: return type defaults to `int'
pick.c: In function `pick':
pick.c:42: warning: implicit declaration of function `ttyin'
pick.c:45: warning: control reaches end of non-void function
cc -Wall -ggdb -O -D_OLD_TERMIOS pick.o ttyin.o efopen.o  -o pick
size pick
__TEXT	__DATA	__OBJC	others	dec	hex
8192	4096	0	12288	24576	6000




Fri Jan 15 02:55:43 MST 1988

The files in the Distribution directory are from simtel20:
	pd2:<unix.utils1>

The files in the main directory are close to what is given
in Kernighan and Pike.

Clearly, the k-p code is on the net, some functions exact, some
others perveted.

Is it public domain?

Regardless, zap and pick are truly useful.  If they cannot be
passed around, then new users should be told to get k-p and
type them in.


John Rupley
 uucp: ..{ihnp4 | hao!noao}!arizona!rupley!local
 internet: rupley!local@megaron.arizona.edu
 telex: 9103508679(JARJAR)
 (H) 30 Calle Belleza, Tucson AZ 85716 - (602) 325-4533
 (O) Dept. Biochemistry, Univ. Arizona, Tucson AZ 85721 - (602) 621-3929

