shithub: tinygl

Download patch

ref: 36a1572b95ddca0c24ac4cbcccb3a547e05b0e1a
parent: 520eb7ccc3162422ddcd5daeb27ce35e65e946d5
author: David <gek@katherine>
date: Sat Mar 13 10:10:06 EST 2021

Automatic commit.

--- a/include-demo/stringutil.h
+++ b/include-demo/stringutil.h
@@ -81,6 +81,10 @@
     return lenstr < lenpre ? 0 : memcmp(pre, str, lenpre) == 0;
 }
 
+static inline unsigned int streq(const char *pre, const char *str)
+{
+    return strcmp(pre, str) == 0;
+}
 //Someone once said sub-string search was an O(n^2) algorithm. What the hell?
 static inline long long strfind(const char* text, const char* subtext){
 	long long ti = 0;