X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fstr.h;h=b89bd52f175b397d363b6079c14d493cfccb275d;hb=bfaff2a3d97a1980b3318fedf628222ebf1a7225;hp=01a3fbd88c65e434634c52626c873d78bebad519;hpb=eb2bdda70aee57124ac4bcb3110f9280472d1dbd;p=idzebra-moved-to-github.git diff --git a/include/str.h b/include/str.h index 01a3fbd..b89bd52 100644 --- a/include/str.h +++ b/include/str.h @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: str.h,v $ - * Revision 1.1 1994-10-20 13:46:36 quinn + * Revision 1.3 1997-09-05 15:30:06 adam + * Changed prototype for chr_map_input - added const. + * Added support for C++, headers uses extern "C" for public definitions. + * + * Revision 1.2 1994/10/20 17:36:06 quinn + * Minimal + * + * Revision 1.1 1994/10/20 13:46:36 quinn * String-management system * */ @@ -12,4 +19,30 @@ #ifndef STR_H #define STR_H +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct str_index +{ + int size; + char *data; +} str_index; + +typedef struct strings_data +{ + str_index *index; + int num_index; + char *bulk; +} strings_data, *STRINGS; + +STRINGS str_open(char *lang, char *name); +void str_close(STRINGS st); +char *str(STRINGS st, int num); +char *strf(STRINGS st, int num, ...); + +#ifdef __cplusplus +} +#endif + #endif