We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d80fc0e commit 026f8c1Copy full SHA for 026f8c1
1 file changed
src/util/strb.h
@@ -77,6 +77,15 @@ static inline int strb_error(strb *sb) {
77
return sb->l == (size_t)-1;
78
}
79
80
+/*
81
+ * Initialize at runtime an strb.
82
+ */
83
+
84
+static inline void strb_init(strb* sb){
85
+ const strb s = STRB_STATIC_INIT;
86
+ *sb = s;
87
+}
88
89
90
/*
91
* Clear any allocation the strb may have done and reset all of its
0 commit comments