libksr/include/ksr/string.h
Madeorsk 46b6f24432 Create first structures and functions.
+ 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.
2021-07-31 19:06:57 +02:00

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);