summaryrefslogtreecommitdiffhomepage
path: root/DDK/KernelString.c
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-03 18:20:35 +0200
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-07-03 18:20:35 +0200
commita7c741c93cb0a53aea686eb2f342f2464bc12c14 (patch)
tree5e90743873451c7f1bc6313d2fb210c470af2cd1 /DDK/KernelString.c
parent8c8822fff78f9ff9cd640271da9b3634c4c2f97f (diff)
COMMIT-07-03-2024-MHR-36
IMP: DDK specification and implementation done. - Kernel calls I/O support for DDK. - System calls I/O support for DDK. - Add Allocation routines for DDK. - Add Helloconf driver. - One generic device. IMPRV: - GPU driver is now C++ based. - Fixed icon path inside makefiles. Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'DDK/KernelString.c')
-rw-r--r--DDK/KernelString.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/DDK/KernelString.c b/DDK/KernelString.c
index 65403389..64116399 100644
--- a/DDK/KernelString.c
+++ b/DDK/KernelString.c
@@ -8,11 +8,14 @@
#include <DDK/KernelString.h>
-DK_EXTERN size_t kernelStringLength(const char* str)
+DK_EXTERN size_t kernelStringLength(const char* in)
{
+ if (in == nil) return 0;
+ if (*in == 0) return 0;
+
size_t index = 0;
- while (str[index] != 0)
+ while (in[index] != 0)
{
++index;
}