Madeorsk
46b6f24432
+ Create ksrarrays. + Create ksrbuffers. + Create ksrpromises. + Create ksregex. + Create strings and files helper functions. + Define some logging constants. + Setup basic unit tests and code coverage.
18 lines
352 B
C
18 lines
352 B
C
#pragma once
|
|
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
/**
|
|
* Check if two strings are equal.
|
|
* @param a - the first string to check.
|
|
* @param b - the second string to check.
|
|
*/
|
|
static inline bool str_equals(const char *a, const char *b)
|
|
{ return 0 == strcmp(a, b); }
|
|
|
|
/**
|
|
* Convert a string to lowercase.
|
|
*/
|
|
char* to_lowercase(const char* str);
|