10#ifndef KERNEL_LIB_STRING_H
11#define KERNEL_LIB_STRING_H
24void*
memcpy(
void* dest,
const void* src,
size_t n);
33void*
memmove(
void* dest,
const void* src,
size_t n);
42void*
memset(
void* dest,
int c,
size_t n);
53int memcmp(
const void* a,
const void* b,
size_t n);
63int strcmp(
const char *s1,
const char *s2);
74int strncmp(
const char *s1,
const char *s2,
size_t n);
81size_t strlen(
const char *str);
89char*
strcat(
char *str1,
const char *str2);
106void int_to_hex_str(
unsigned long long value,
char *buff, uint8_t char_limit);
size_t strlen(const char *str)
Calculates the length of a string.
int strncmp(const char *s1, const char *s2, size_t n)
Compares 2 strings up to n characters.
char * strcat(char *str1, const char *str2)
Concatenates (joins) 2 strings.
int strcmp(const char *s1, const char *s2)
Compares 2 strings.
void * memset(void *dest, int c, size_t n)
Fills n bytes of the destination with c.
void * memmove(void *dest, const void *src, size_t n)
Copies memory from one address to the other with possible overlap.
void int_to_hex_str(unsigned long long value, char *buff, uint8_t char_limit)
Converts an integer value into a hex string.
int memcmp(const void *a, const void *b, size_t n)
Compares 2 the value of 2 memory addresses.
char * int_to_str(uint64_t value, char *buff)
Converts an integer to a string.
void * memcpy(void *dest, const void *src, size_t n)
Copies memory from one address to the other without overlapping.