- Fixed new AMOR settings module - Initial implementation of the new SICS hierarchical parameter database SKIPPED: psi/amorset.c psi/libpsi.a psi/sps.c
33 lines
826 B
C
33 lines
826 B
C
/* ------------------------------------------------------------------------
|
|
The Accesscode names for SICS
|
|
|
|
Mark Koennecke, November 1996
|
|
----------------------------------------------------------------------------*/
|
|
#include <string.h>
|
|
#include <sics.h>
|
|
#include <splitter.h>
|
|
|
|
static char *aCode[] = {
|
|
"internal",
|
|
"mugger",
|
|
"user",
|
|
"spy",
|
|
NULL };
|
|
static int iCodes = 4;
|
|
/*--------------------------------------------------------------------------*/
|
|
int decodeSICSPriv(char *privText){
|
|
int code = 0;
|
|
|
|
strtolower(privText);
|
|
while(aCode[code] != NULL){
|
|
if(strcmp(aCode[code], privText) == 0){
|
|
return code;
|
|
}
|
|
code++;
|
|
}
|
|
if(code >= iCodes){
|
|
return -1;
|
|
}
|
|
return -1;
|
|
}
|