summaryrefslogtreecommitdiff
path: root/buf.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-05-12 15:05:57 +0100
committerFreeArtMan <dos21h@gmail.com>2019-05-12 15:05:57 +0100
commit082dee0658b67744ab3428eea964f375f7aab9dc (patch)
tree6dd58d5044513ec7bef3b445fefa7003e33ebeed /buf.h
parent654bb8b09dd90c12c3a51ffdce800b2255b753b5 (diff)
downloadlibbuf-082dee0658b67744ab3428eea964f375f7aab9dc.tar.gz
libbuf-082dee0658b67744ab3428eea964f375f7aab9dc.zip
Added more functionality to Buf, substring, search for characer, and shifting string.
Diffstat (limited to 'buf.h')
-rw-r--r--buf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/buf.h b/buf.h
index 212577d..2d92f33 100644
--- a/buf.h
+++ b/buf.h
@@ -76,6 +76,9 @@ public:
int setc(int idx, char c);
int pushc(char c);
int getc(int idx, char *c);
+ int findc(char c, int *idx);
+ int popsubstring(int sz, char **val, int *size);
+ int shiftleft(int n);
};
#endif \ No newline at end of file