Move string functions/utils from HAL to std/string

This commit is contained in:
2025-11-11 19:54:09 +01:00
parent f5dae4984d
commit 344952fb5f
27 changed files with 200 additions and 228 deletions

View File

@ -10,6 +10,7 @@
#include "sysdefs/proc.h"
#include "sysdefs/time.h"
#include "dev/dev.h"
#include "std/string.h"
#define PROC_NAME_MAX 0x100
@ -90,7 +91,7 @@ void proc_kill(Proc *proc);
#define PROC_ARG(proc, str) \
do { \
ProcArg *__arg = dlmalloc(sizeof(*__arg)); \
hal_strcpy(__arg->string, (str)); \
strcpy(__arg->string, (str)); \
LL_APPEND((proc)->procargs.list, __arg); \
(proc)->procargs.len++; \
} while(0)