Updated headers and function document from 4.x

This commit is contained in:
NovaRain
2023-06-05 11:03:51 +08:00
parent 378bc8a126
commit 4e3f065453
4 changed files with 36 additions and 6 deletions
+2 -2
View File
@@ -9,8 +9,8 @@
#ifndef LIB_STRINGS_H
#define LIB_STRINGS_H
#define is_in_string(str, substr) (string_pos(str, substr) != -1)
#define string_starts_with(str, substr) (string_pos(str, substr) == 0)
#define is_in_string(str, sub) (string_pos(str, sub) != -1)
#define string_starts_with(str, sub) (substr(str, 0, strlen(sub)) == sub)
/**
* Returns position of first occurance of substr in str, or -1 if not found