NEURON
hocstr.h
Go to the documentation of this file.
1
#pragma once
2
#include <stdio.h>
3
/* too many time char* buf overruns its storage */
4
5
6
typedef
struct
HocStr
{
7
char
*
buf
;
8
size_t
size
;
9
}
HocStr
;
10
11
extern
HocStr
*
hoc_tmpbuf
;
/* highly volatile, copy immediately */
12
extern
HocStr
*
hocstr_create
(
size_t
);
13
extern
void
hocstr_delete
(
HocStr
*);
14
void
hocstr_resize
(
HocStr
*,
size_t
);
15
void
hocstr_copy
(
HocStr
*,
const
char
*);
hoc_tmpbuf
HocStr * hoc_tmpbuf
Definition:
hoc.cpp:137
hocstr_copy
void hocstr_copy(HocStr *, const char *)
Definition:
hoc.cpp:855
hocstr_delete
void hocstr_delete(HocStr *)
Definition:
hoc.cpp:842
hocstr_create
HocStr * hocstr_create(size_t)
Definition:
hoc.cpp:828
HocStr
struct HocStr HocStr
hocstr_resize
void hocstr_resize(HocStr *, size_t)
Definition:
hoc.cpp:847
HocStr
Definition:
hocstr.h:6
HocStr::size
size_t size
Definition:
hocstr.h:8
HocStr::buf
char * buf
Definition:
hocstr.h:7
src
oc
hocstr.h