/* * Copyright (c) Hisilicon Technologies Co., Ltd. 2014-2020. All rights reserved. * Description: string.h * Author: SmartMedia_BSP * Create: 2014-06-04 */ #ifndef STRINGH #define STRINGH #include extern char const g_hex2ascii_data[]; #define hex2ascii(hex) (g_hex2ascii_data[hex]) #define imax(_a, _b) ((_a) > (_b) ? (_a) : (_b)) void *memcpy(void *dst, const void *src, size_t len); void *memset(void *b, int c, size_t len); int memcmp(const void *b1, const void *b2, size_t len); int strcmp(const char *s1, const char *s2); int strncmp(const char *s1, const char *s2, size_t len); unsigned long strtoul(const char *nptr, char **endptr, int base); uint64 strtoull(const char *nptr, char **endptr, int base); uint64 memparse(const char *ptr, char **retptr); char *strndup(const char *str, size_t n); char *strtok(char *s, const char *delim); size_t strlen(const char *s); char *strchr(const char *s, char ch); char *strdup(const char *s); char *strstr(const char *s1, const char *s2); #endif /* STRINGH */