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
;
10
}
HocStr
;
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
hoc_tmpbuf
HocStr * hoc_tmpbuf
Definition:
hoc.cpp:164
hocstr_copy
void hocstr_copy(HocStr *, const char *)
Definition:
hoc.cpp:972
hocstr_delete
void hocstr_delete(HocStr *)
Definition:
hoc.cpp:959
hocstr_create
HocStr * hocstr_create(size_t)
Definition:
hoc.cpp:945
HocStr
struct HocStr HocStr
hocstr_resize
void hocstr_resize(HocStr *, size_t)
Definition:
hoc.cpp:964
HocStr
Definition:
hocstr.h:7
HocStr::size
size_t size
Definition:
hocstr.h:9
HocStr::buf
char * buf
Definition:
hocstr.h:8
src
oc
hocstr.h