remove atoi test

This commit is contained in:
Michael Shaw 2023-03-24 03:45:06 -04:00
commit fe93196a01
5 changed files with 30 additions and 12 deletions

View file

@ -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)

View file

@ -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)