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;
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*);
HocStr * hoc_tmpbuf
Definition: hoc.cpp:137
void hocstr_copy(HocStr *, const char *)
Definition: hoc.cpp:855
void hocstr_delete(HocStr *)
Definition: hoc.cpp:842
HocStr * hocstr_create(size_t)
Definition: hoc.cpp:828
struct HocStr HocStr
void hocstr_resize(HocStr *, size_t)
Definition: hoc.cpp:847
Definition: hocstr.h:6
size_t size
Definition: hocstr.h:8
char * buf
Definition: hocstr.h:7