You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
riscv-pke/util/string.h

19 lines
539 B

#ifndef _STRING_H
#define _STRING_H
#include <stddef.h>
void *memcpy(void* dest, const void* src, size_t len);
void *memset(void* dest, int byte, size_t len);
size_t strlen(const char* s);
int strcmp(const char* s1, const char* s2);
char *strcpy(char* dest, const char* src);
char *strchr(const char *p, int ch);
char *strtok(char* str, const char* delim);
char *strcat(char *dst, const char *src);
long atol(const char* str);
void *memmove(void* dst, const void* src, size_t n);
char *safestrcpy(char* s, const char* t, int n);
#endif