lib: move lib headers into lib directory
This commit is contained in:
parent
2f20777a47
commit
a10509f1e5
20 changed files with 13 additions and 24 deletions
29
include/lib/string.h
Normal file
29
include/lib/string.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _STRING_H_
|
||||
#define _STRING_H_
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <kernel/lock.h>
|
||||
|
||||
void *memcpy(void *dest, const void *src, size_t num);
|
||||
int memcmp(const void *aa, const void *bb, size_t num);
|
||||
int strcmp(const char *a, const char *b);
|
||||
int strncmp(const char *a, const char *b, size_t n);
|
||||
void *memset(void *str, int c, size_t n);
|
||||
char *strcpy(char *dest, const char *src);
|
||||
char *strncpy(char *dest, const char *src, size_t n);
|
||||
char *strtok(char *str, const char *delim, char **llast);
|
||||
bool strempty(const char *s);
|
||||
char **strsplit(const char *str, char delim, int *num);
|
||||
size_t strlen(const char *c);
|
||||
int atoi(const char *a);
|
||||
|
||||
extern spinlock_t strtok_lock;
|
||||
|
||||
#endif /* __ASM__ */
|
||||
#endif /* _STRING_H_ */
|
||||
Loading…
Reference in a new issue