diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-20 16:47:35 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-20 16:47:35 +0200 |
| commit | bc97b2b790eb06d8f9adb8ef8fa41874d7d19770 (patch) | |
| tree | a6929db78467c2b07877abb9d9aad579d77139bb /dev/kernel/src/Utils.cc | |
| parent | 699e395505a602f4a731c481646233d87f87a85c (diff) | |
kernel, dev: python script to make an ESP from files.
- Started implementing the wrt_* APIs (Wide string functions)
- Make user.sys link now, need to implement more syscalls.
- Tiny HEFS refactors too.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/src/Utils.cc')
| -rw-r--r-- | dev/kernel/src/Utils.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/kernel/src/Utils.cc b/dev/kernel/src/Utils.cc index f5e61ddf..10c5d714 100644 --- a/dev/kernel/src/Utils.cc +++ b/dev/kernel/src/Utils.cc @@ -42,6 +42,16 @@ namespace Kernel return len; } + + Size wrt_string_len(const Utf16Char* str) + { + SizeT len{0}; + + while (str[len] != 0) + ++len; + + return len; + } Size rt_string_len(const Char* ptr) { |
