5.5 String Utilities
-
char *serd_canonical_path(SerdAllocator *allocator, const char *path)
Return
pathas a canonical absolute path.This expands all symbolic links, relative references, and removes extra directory separators. Null is returned on error, including if the path does not exist.
- Returns
A newly allocated string that must be freed with
serd_free()using the world allocator, or null.
-
int serd_strncasecmp(const char *s1, const char *s2, size_t n)
Compare two strings ignoring case.
- Returns
Less than, equal to, or greater than zero if
s1is less than, equal to, or greater thans2, respectively.