abouttreesummaryrefslogcommitdiff
path: root/src/fixedbuffer.h
blob: d8055cba2825b8139c3d00de7aa4a14a529b90ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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