OSAPI  0.29
Open System API
string_types_basic.h
1 // *****************************************************************************************
2 //
3 // File description:
4 //
5 // Author: Joao Costa
6 // Purpose: String module declarations for basic C strings
7 //
8 // *****************************************************************************************
9 
10 #ifndef OSAPI_STRING_TYPES_BASIC_H_
11 #define OSAPI_STRING_TYPES_BASIC_H_
12 
13 // Make sure that header is easily imported from c++
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 // *****************************************************************************************
19 //
20 // Section: Import headers
21 //
22 // *****************************************************************************************
23 
24 // Force baseline before system headers
25 #include "general/general_baseline.h"
26 
27 // System headers
28 #include <stdint.h>
29 
30 
39 
40 // *****************************************************************************************
41 //
42 // Section: Type declarations
43 //
44 // *****************************************************************************************
45 
48 {
49  uint64_t tsize;
50  uint64_t csize;
51  char * ps_location;
52 };
53 
57 #define OSAPI_STRING_NULL_POINTER (( t_string *) 0)
58 
61 
62 // End of header with C++ declaration
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 
68 #endif /* OSAPI_STRING_TYPES_BASIC_H_ */
osapi_basic_string::ps_location
char * ps_location
Pointer to String location.
Definition: string_types_basic.h:51
osapi_basic_string::csize
uint64_t csize
Current used size.
Definition: string_types_basic.h:50
osapi_basic_string::tsize
uint64_t tsize
Total size of the allocated string memory.
Definition: string_types_basic.h:49
osapi_basic_string
The OSAPI C String structure.
Definition: string_types_basic.h:47