#ifndef lint
static char * rcsid ="$Id: range.c,v 1.1 1993/06/16 14:24:50 jik Exp jik $";
#endif
/*
***************************************************************************
This work in its current form is Copyright 1989 Stan Barber
This software may be distributed freely as long as no profit is made from
such distribution and this notice is reproducted in whole.
***************************************************************************
This software is provided on an "as is" basis with no guarantee of 
usefulness or correctness of operation for any purpose, intended or
otherwise. The author is in no way liable for this software's performance
or any damage it may cause to any data of any kind anywhere.
***************************************************************************
*/
/*
 * $Log: range.c,v $
 * Revision 1.1  1993/06/16  14:24:50  jik
 * Initial revision
 *
 * Revision 4.4  1991/09/09  20:27:37  sob
 * release 4.4
 *
 *
 *
 */

#include <stdio.h>
#ifdef USG
#include <strings.h>
#define rindex strrchr
#else
extern char *rindex(); 
#endif
char * progname;

main(argc,argv)
char *argv[];
int argc;
{
    int x,y,i;


    if ((progname = rindex(argv[0],'/'))== NULL)
	    progname = argv[0];
    else progname++;
    

    if (argc != 3) usage();
    x = atoi(argv[1]);
    y = atoi(argv[2]);
    if (y < x) usage();
    y++;

    for (i=x;i < y;i++)
	printf("%d ",i);
    printf("\n");

    exit(0);
}

usage(){
    fprintf(stderr,"Usage: %s startnumber endnumber\n",progname);
    exit(-1);
}
