summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/String.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-03-01 05:48:35 +0100
commit38cddd5dc02f886e5cb3a0e386f0f7a1e6c8da86 (patch)
tree69b8bfc0a3fc403abf165d501e18b57e63a2405e /src/libDDK/DriverKit/String.h
parent0871e5925e99e9a6f2d1eaf51ae82c7b4f740560 (diff)
feat: ddk!: Breaking changes, the DDK has been reworked in C++ instead.
chore: public, kernel: fixes and important patches. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/String.h')
-rw-r--r--src/libDDK/DriverKit/String.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libDDK/DriverKit/String.h b/src/libDDK/DriverKit/String.h
new file mode 100644
index 00000000..5f56f95b
--- /dev/null
+++ b/src/libDDK/DriverKit/String.h
@@ -0,0 +1,16 @@
+// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org)
+// Licensed under the Apache License, Version 2.0 (see LICENSE file)
+// Official repository: https://github.com/nekernel-org/nekernel
+
+#ifndef DRIVERKIT_STR_H
+#define DRIVERKIT_STR_H
+
+#include <DriverKit/DriverKit.h>
+
+/// @brief DDK equivalent of POSIX's string.h
+/// @file str.h
+
+DDK_EXTERN size_t kstrlen(const char* in);
+DDK_EXTERN int kstrncpy(char* dst, const char* src, size_t len);
+
+#endif