From c440204fa56551f61b0876ed881e0bc6a8314607 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 31 Jul 2024 23:58:10 +0300 Subject: [PATCH] LibC: Implement dummy strcoll() --- userspace/libraries/LibC/string.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/userspace/libraries/LibC/string.cpp b/userspace/libraries/LibC/string.cpp index 5f939e0250..32a01d3a66 100644 --- a/userspace/libraries/LibC/string.cpp +++ b/userspace/libraries/LibC/string.cpp @@ -136,6 +136,12 @@ char* strncat(char* __restrict__ dest, const char* __restrict__ src, size_t n) return dest; } +int strcoll(const char* s1, const char* s2) +{ + // FIXME: support locales + return strcmp(s1, s2); +} + char* strdup(const char* str) { const size_t size = strlen(str) + 1;