Procházet zdrojové kódy

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

Vinicius Teshima před 1 rokem
rodič
revize
c36b70456b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;