diff options
Diffstat (limited to 'src/fixedbuffer.h')
| -rw-r--r-- | src/fixedbuffer.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fixedbuffer.h b/src/fixedbuffer.h new file mode 100644 index 0000000..d8055cb --- /dev/null +++ b/src/fixedbuffer.h @@ -0,0 +1,19 @@ +#ifndef FIXEDBUFFER__H
+#define FIXEDBUFFER__H
+
+#include <stdbool.h>
+
+typedef struct FixedBuffer {
+ char * ptr;
+ int cap;
+ int len;
+} FixedBuffer;
+
+FixedBuffer
+FixedBuf(const char * str);
+
+bool
+FixedBufferToInt(FixedBuffer fb, int * outInt);
+
+
+#endif
\ No newline at end of file |
