From 7d07bef760a8807fe49fbe5c90799a1822f95973 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 8 Oct 2026 19:45:19 +0200 Subject: Make modules re-exportable --- source/sys/posix/cstring.elna | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 source/sys/posix/cstring.elna (limited to 'source/sys/posix/cstring.elna') diff --git a/source/sys/posix/cstring.elna b/source/sys/posix/cstring.elna new file mode 100644 index 0000000..3973573 --- /dev/null +++ b/source/sys/posix/cstring.elna @@ -0,0 +1,30 @@ +(* This Source Code Form is subject to the terms of the Mozilla Public License, + v. 2.0. If a copy of the MPL was not distributed with this file, You can + obtain one at https://mozilla.org/MPL/2.0/. *) +module + +proc memset*#[T](ptr: ^T; c: Int; n: Word) -> ^Word8 +extern + +proc memcpy*#[T](dst: ^T; src: ^const T; n: Word) +extern + +proc memcmp*#[T](s1, s2: ^const T; n: Word) -> Int +extern + +proc strcmp*(s1: ^const Word8; s2: ^const Word8) -> Int +extern + +proc strncmp*(s1: ^const Word8; s2: ^const Word8; n: Word) -> Int +extern + +proc strncpy*(dst: ^Word8; src: ^const Word8; dsize: Word) -> ^Word8 +extern + +proc strcpy*(dst: ^Word8; src: ^const Word8) -> ^Word8 +extern + +proc strlen*(ptr: ^const Word8) -> Word +extern + +end. -- cgit v1.2.3