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