00001 /*========================================================================== 00002 * Copyright (c) 2001 Carnegie Mellon University. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.cs.cmu.edu/~lemur/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 00013 #ifndef _STRINGSETH_ 00014 #define _STRINGSETH_ 00015 00016 #include <stdio.h> 00017 00018 typedef struct { 00019 int size; /* the current size of the table */ 00020 int count; /* number of things currently in the table */ 00021 char ** table; /* the table itself */ 00022 } String_set; 00023 00024 String_set * string_set_create(void); 00025 char * string_set_add(const char * source_string, String_set * ss); 00026 char * string_set_lookup(const char * source_string, String_set * ss); 00027 void string_set_delete(String_set *ss); 00028 void string_set_display(FILE * fp, String_set *ss); 00029 00030 #endif