diff options
Diffstat (limited to 'source/sys/posix/cstring.elna')
| -rw-r--r-- | source/sys/posix/cstring.elna | 30 |
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. |
