getusershell.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#pragma ident "%Z%%M% %I% %E% SMI"
/* from UCB 5.4 7/25/86 */
/*
* Copyright (c) 1985 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <ctype.h>
#include <stdio.h>
/*
*/
static char *okshells[] =
static char **curshell;
extern char **initshells();
/*
* Get a list of shells from SHELLS, if it exists.
*/
char *
{
char *ret;
curshell = initshells();
curshell++;
return (ret);
}
{
}
{
curshell = initshells();
}
static char **
{
return(okshells);
return(okshells);
}
return(okshells);
}
return(okshells);
}
cp++;
continue;
cp++;
*cp++ = '\0';
}
*sp = (char *)0;
return (shells);
}