b89bd52f175b397d363b6079c14d493cfccb275d
[idzebra-moved-to-github.git] / include / str.h
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: str.h,v $
7  * Revision 1.3  1997-09-05 15:30:06  adam
8  * Changed prototype for chr_map_input - added const.
9  * Added support for C++, headers uses extern "C" for public definitions.
10  *
11  * Revision 1.2  1994/10/20 17:36:06  quinn
12  * Minimal
13  *
14  * Revision 1.1  1994/10/20  13:46:36  quinn
15  * String-management system
16  *
17  */
18
19 #ifndef STR_H
20 #define STR_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 typedef struct str_index
27 {
28     int size;
29     char *data;
30 } str_index;
31
32 typedef struct strings_data
33 {
34     str_index *index;
35     int num_index;
36     char *bulk;
37 } strings_data, *STRINGS;
38
39 STRINGS str_open(char *lang, char *name);
40 void str_close(STRINGS st);
41 char *str(STRINGS st, int num);
42 char *strf(STRINGS st, int num, ...);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif