Docs: Clarification about get_ini_* function return values

- Also updated lib.strings.h
This commit is contained in:
phobos2077
2023-06-04 20:32:43 +02:00
parent ac1abf71f8
commit 21fe99a297
3 changed files with 15 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