separating: there will be libk and libc
This commit is contained in:
21
libk/string.h
Normal file
21
libk/string.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// String operations implementation for blankos/libk header
|
||||
// Author: xamidev
|
||||
// Licensed under the Unlicense. See the repo below.
|
||||
// https://github.com/xamidev/blankos
|
||||
|
||||
#ifndef STRING_H
|
||||
#define STRING_H
|
||||
|
||||
#include "../kernel/system.h"
|
||||
|
||||
int strlen(const char* str);
|
||||
int strcmp(const char* str1, const char* str2);
|
||||
char* strtok(char* str, const char* delimiter);
|
||||
int atoi(char* str);
|
||||
void strcat(char* dest, const char* src);
|
||||
|
||||
// Safer functions
|
||||
size_t strnlen(const char* str, size_t max_len);
|
||||
void strncat(char* dest, const char* src, size_t n);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user