| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- * Copyright (C) 2019 Intel Corporation. All rights reserved.
- * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- */
- #ifndef _LIB_BASE_H_
- #define _LIB_BASE_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- void *malloc(size_t size);
- void *calloc(size_t n, size_t size);
- void free(void *ptr);
- int memcmp(const void *s1, const void *s2, size_t n);
- void *memcpy(void *dest, const void *src, size_t n);
- void *memmove(void *dest, const void *src, size_t n);
- void *memset(void *s, int c, size_t n);
- int putchar(int c);
- int snprintf(char *str, size_t size, const char *format, ...);
- int sprintf(char *str, const char *format, ...);
- char *strchr(const char *s, int c);
- int strcmp(const char *s1, const char *s2);
- char *strcpy(char *dest, const char *src);
- size_t strlen(const char *s);
- int strncmp(const char * str1, const char * str2, size_t n);
- char *strncpy(char *dest, const char *src, unsigned long n);
- #ifdef __cplusplus
- }
- #endif
- #endif
|