#include <stdio.h>

#define	DEFTABS	8	/* default tab stop positions */

main(argc, argv)
char *argv[];
int argc;
{
	FILE	*fp;	/* input file pointer    */
	char	*stops;	/* stops on the cmdline  */
	int	tabstop;
	
	argv++;		/* get past command name */
	tabstop = DEFTABS;

	if ((stops=getenv("TABS")) != NULL) {
		if ((tabstop = atoi(stops)) <= 0)
			tabstop = DEFTABS;
	}

	while (*argv != NULL && **argv == '-') {
		switch ((*argv)[1]) {
			case 't':
				stops = &(*argv)[2];
				tabstop = atoi(stops);
				break;
			default:
				fprintf(stderr, "%s: unknown option %s\n",
					"entab", *argv);
		}
		++argv;	/* Process next argument */
	}
	printf("Using %d tabstop - Default is %d\n", tabstop, DEFTABS);
	return 0;
}