4.1cBSD/usr/src/usr.lib/undoc/libpriv/alldigits.c

Compare this file to the similar file:
Show the results in this format:

/*	@(#)alldigits.c	4.1	(Melbourne)	82/02/21	*/

#include <ctype.h>

alldigits(s)
register char *s;
{
	register c;

	c = *s++;
	do {
		if (!isdigit(c))
			return(0);
	} while (c = *s++);
	return(1);
}