/*
 *
 *	Copyright (C) 1988, 1989 by the Massachusetts Institute of Technology
 *    	Developed by the MIT Student Information Processing Board (SIPB).
 *    	For copying information, see the file mit-copyright.h in this release.
 *
 */
#include <stdio.h>
#include "ss.h"

struct option {
     char *text;
     long value;
};

static struct option options[] = {
     { "dont_list", SS_OPT_DONT_LIST },
     { "^list", SS_OPT_DONT_LIST },
     { "dont_summarize", SS_OPT_DONT_SUMMARIZE },
     { "^summarize", SS_OPT_DONT_SUMMARIZE },
     { (char *)NULL, 0 }
};

long
flag_val(string)
     register char *string;
{
     register struct option *opt;
     for (opt = options; opt->text; opt++)
	  if (!strcmp(opt->text, string))
	       return(opt->value);
     return(0);
}
