NetBSD/libexec/getNAME
christos 04691c5e33 Overhaul:
- Use fgetln instead of fgets and keep track of line limits.
	- Use dynamically allocated buffers instead of fixed length ones.
	- Use err/warn
	- Don't re-scan strings needlessly.
	- Handle extensions properly for page names that contain more than
	  one period printing:
		resolv.conf (5) - resolver configuration file
	  instead of:
		resolv.conf (conf.5) - resolver configuration file

This fixes PR/4738: "Coredump in getNAME" as a side effect.

This program is a hack; it depends on the ``standard format'' of a man page
and can get easily confused. At least now it will not core-dump...
1997-12-22 20:02:33 +00:00
..
Makefile add a manual for getNAME. also, change the `default' output to be in 1997-11-01 15:03:51 +00:00
getNAME.8 edit a bit, and bewail inability to handle compressed manpages 1997-12-04 06:41:42 +00:00
getNAME.c Overhaul: 1997-12-22 20:02:33 +00:00