summaryrefslogtreecommitdiffhomepage
path: root/DDKit/KernelString.h
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-30 08:49:23 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-30 08:49:23 +0200
commitbf642edd6c77d405637f0695452460640b8e540d (patch)
treee8e78f658e5eac62790a0fb8129a491183db92d5 /DDKit/KernelString.h
parent60902ec5fc462128d264f63f279c7fc362a72e1d (diff)
[Refactor] SCIKit and DDKit.
[IMP} Prevent DDK from being included when we aren't in kernel mode. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'DDKit/KernelString.h')
-rw-r--r--DDKit/KernelString.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/DDKit/KernelString.h b/DDKit/KernelString.h
new file mode 100644
index 00000000..07d33c7e
--- /dev/null
+++ b/DDKit/KernelString.h
@@ -0,0 +1,17 @@
+/* -------------------------------------------
+
+ Copyright ZKA Technologies
+
+ Purpose: DDK Strings.
+
+------------------------------------------- */
+
+#pragma once
+
+#include <DDKit/KernelStd.h>
+
+/// @brief DDK equivalent of POSIX's string.h
+/// @file kernelString.h
+
+DK_EXTERN size_t kernelStringLength(const char* in);
+DK_EXTERN int kernelStringCopy(char* dst, const char* src, size_t len);