From a7c741c93cb0a53aea686eb2f342f2464bc12c14 Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Wed, 3 Jul 2024 18:20:35 +0200 Subject: 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 --- DDK/KernelString.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'DDK/KernelString.c') 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 -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; } -- cgit v1.2.3