diff options
| author | Tyge Løvset <[email protected]> | 2022-01-11 00:22:01 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-01-11 00:22:01 +0100 |
| commit | 14c0c1b9ab2ce6a4f98baf389d712515b7c68933 (patch) | |
| tree | 07a3f42e6aa7e806dcbfa899b6f71fd1d6ca5600 /include/stc/alt | |
| parent | b1c62797f6344eaea6cb55959c9f438481359c75 (diff) | |
| download | STC-modified-14c0c1b9ab2ce6a4f98baf389d712515b7c68933.tar.gz STC-modified-14c0c1b9ab2ce6a4f98baf389d712515b7c68933.zip | |
Some updates on Regex. Will remove it for now, as it is functionally unstable.
Diffstat (limited to 'include/stc/alt')
| -rw-r--r-- | include/stc/alt/cstr.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/stc/alt/cstr.h b/include/stc/alt/cstr.h index 2271be7c..adad3e3d 100644 --- a/include/stc/alt/cstr.h +++ b/include/stc/alt/cstr.h @@ -24,13 +24,15 @@ /* A string type with short string optimization in C99 with optimal short string
* utilization (23 characters with 24 bytes string representation).
*/
-#ifndef CSTR_INCLUDED
-#define CSTR_INCLUDED
+#ifndef CSTR_H_INCLUDED
+#define CSTR_H_INCLUDED
#include <stc/ccommon.h>
-#include <stdlib.h>
+#include <stdlib.h> /* malloc */
#include <string.h>
-#include <stdio.h>
+#include <stdarg.h>
+#include <stdio.h> /* vsnprintf */
+#include <ctype.h>
typedef struct { char* data; size_t size, cap; } _cstr_rep_t;
|
