From 7a1ea510a9fc43ccbc257601b149a90920332e13 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jul 2016 22:39:04 +0200 Subject: Add Lua source, not compiled yet as libc/libm functions remain unimplemented --- src/common/libc/string.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/common/libc/string.c') diff --git a/src/common/libc/string.c b/src/common/libc/string.c index d2a5f2f..90cea34 100644 --- a/src/common/libc/string.c +++ b/src/common/libc/string.c @@ -144,4 +144,9 @@ char *strndup(const char* str, size_t count) { return ret; } +int strcoll(const char *s1, const char *s2) { + // TODO locale handling + return strcmp(s1, s2); +} + /* vim: set ts=4 sw=4 tw=0 noet :*/ -- cgit v1.2.3