NEURON
hocstr.h
Go to the documentation of this file.
1 #ifndef hocstr_h
2 #define hocstr_h
3 #include <stdio.h>
4 /* too many time char* buf overruns its storage */
5 
6 
7 typedef struct HocStr {
8  char* buf;
9  size_t size;
11 
12 extern HocStr* hoc_tmpbuf; /* highly volatile, copy immediately */
13 extern HocStr* hocstr_create(size_t);
14 extern void hocstr_delete(HocStr*);
15 void hocstr_resize(HocStr*, size_t);
16 void hocstr_copy(HocStr*, const char*);
17 
18 
19 #endif
HocStr * hoc_tmpbuf
Definition: hoc.cpp:164
void hocstr_copy(HocStr *, const char *)
Definition: hoc.cpp:972
void hocstr_delete(HocStr *)
Definition: hoc.cpp:959
HocStr * hocstr_create(size_t)
Definition: hoc.cpp:945
struct HocStr HocStr
void hocstr_resize(HocStr *, size_t)
Definition: hoc.cpp:964
Definition: hocstr.h:7
size_t size
Definition: hocstr.h:9
char * buf
Definition: hocstr.h:8