remove atoi test
This commit is contained in:
parent
2694098d62
commit
fe93196a01
5 changed files with 30 additions and 12 deletions
|
|
@ -1,12 +1,12 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include <kernel/common.h>
|
||||
#include <dev/serial.h>
|
||||
#include <dev/console.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
static inline void printf_out(char c)
|
||||
{
|
||||
serial_write(c);
|
||||
console_write(c);
|
||||
}
|
||||
|
||||
static int printf_write(const char *restrict s)
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ char *strcpy(char *dest, const char *src)
|
|||
size_t strlen(const char *c)
|
||||
{
|
||||
const char *b = c;
|
||||
while (*b++)
|
||||
;
|
||||
return b - c - 1;
|
||||
while (*b)
|
||||
b++;
|
||||
return b - c;
|
||||
}
|
||||
|
||||
int memcmp(const void *aa, const void *bb, size_t num)
|
||||
|
|
|
|||
Loading…
Reference in a new issue