22#ifndef GLITCHEDHTTPS_STRUTIL_H
23#define GLITCHEDHTTPS_STRUTIL_H
44 if (str1 == NULL || str2 == NULL)
49 while ((*str1 || *str2) && cmp < n)
51 if ((ret = tolower((
int)(*str1)) - tolower((
int)(*str2))) != 0)
70 return strlen(url) >= 7 && strncmp(url,
"http://", 7) == 0;
80 return strlen(url) >= 8 && strncmp(url,
"https://", 8) == 0;
90 size_t n = number, digits = 0;
static int glitchedhttps_is_https(const char *url)
Definition: glitchedhttps_strutil.h:78
static size_t glitchedhttps_count_digits(const size_t number)
Definition: glitchedhttps_strutil.h:88
GLITCHEDHTTPS_API int glitchedhttps_strncmpic(const char *str1, const char *str2, size_t n)
Definition: glitchedhttps_strutil.h:39
static int glitchedhttps_is_http(const char *url)
Definition: glitchedhttps_strutil.h:68