Forráskód Böngészése

[str.h] Adding global variable of a empty str

Vinicius Teshima 1 éve
szülő
commit
c36b70456b
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      src/str.h

+ 2 - 0
src/str.h

@@ -11,6 +11,8 @@ struct str {
 	size_t size;
 };
 
+const struct str STR_EMPTY = {"", 0};
+
 struct str_tokenizer {
 	struct str str;
 	size_t cur;