4.3BSD/usr/contrib/spms/src/lib/libspms/test/ispdt.a

!<arch>
Iispdt          418696311   968   27    100644  37        `
src
print.1
print.1.1
print.a
.1
.a


Oispdt          418696311   968   27    100644  120       `
src is legal
print.1 is legal
print.1.1 is not legal
print.a is not legal
.1 is not legal
.a is not legal
 is not legal
Tispdt.c        418696313   968   27    100644  348       `
/*
 * ispdt()
 */
#include "null.h"
#include "path.h"

main()
{
	char *gets();			/* get a line from stdin */
	char type[TYPESIZE];		/* type label buffer */
	int ispdt();			/* is project dir type label legal? */

	while (gets(type) != NULL)
		if (ispdt(type))
			printf("%s is legal\n",type);
		else
			printf("%s is not legal\n",type);
	exit(0);
}