aboutsummaryrefslogtreecommitdiff
path: root/source/sys/posix/cstring.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
committerEugen Wissner <belka@caraus.de>2026-10-08 19:45:19 +0200
commit7d07bef760a8807fe49fbe5c90799a1822f95973 (patch)
tree8b8d8ed0003dc61c4bd7313df86f6cbaea3d4b82 /source/sys/posix/cstring.elna
parentd392f0c54a7748b816ab327758ae835f73cd1c0a (diff)
downloadelna-7d07bef760a8807fe49fbe5c90799a1822f95973.tar.gz
Make modules re-exportable
Diffstat (limited to 'source/sys/posix/cstring.elna')
-rw-r--r--source/sys/posix/cstring.elna30
1 files changed, 30 insertions, 0 deletions
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.