Parsing commandline arguments

This commit is contained in:
2025-09-13 15:43:31 +02:00
parent dc3d80d707
commit e6891b39cc
18 changed files with 448 additions and 59 deletions

6
ulib/std/limits.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef ULIB_STD_LIMITS_H_
#define ULIB_STD_LIMITS_H_
#include <machine/limits.h>
#endif // ULIB_STD_LIMITS_H_

17
ulib/std/stdlib.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef ULIB_STD_STDLIB_H_
#define ULIB_STD_STDLIB_H_
#include <uprintf.h>
#include <string/conv.h>
#define printf uprintf
#define sprintf usprintf
#define vsprintf uvsprintf
#define snprintf usnprintf
#define vsnprintf uvsnprintf
#define vprintf uvprintf
#define strtoul string_conv_strtoul
#define strtol string_conv_strtol
#endif // ULIB_STD_STDLIB_H_

17
ulib/std/string.h Normal file
View File

@ -0,0 +1,17 @@
#ifndef ULIB_STD_STRING_H_
#define ULIB_STD_STRING_H_
#include <string/string.h>
#define memset string_memset
#define memcpy string_memcpy
#define strlen string_len
#define memcmp string_memcmp
#define strcmp string_strcmp
#define strcspn string_strcspn
#define strspn string_strspn
#define strcpy string_strcpy
#define strchr string_strchr
#define strncmp string_strncmp
#endif // ULIB_STD_STRING_H_