2015-04-10 16:44:37 -07:00
|
|
|
/* string.h */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-18 17:01:01 -08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-10 16:44:37 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INC_string_h__
|
|
|
|
#define __INC_string_h__
|
|
|
|
|
2016-09-13 10:19:07 +08:00
|
|
|
#include <stddef.h>
|
2015-12-17 11:04:31 -05:00
|
|
|
#include <bits/restrict.h>
|
2015-04-10 16:44:37 -07:00
|
|
|
|
2016-01-22 12:38:49 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-02-02 12:01:59 -08:00
|
|
|
extern char *strcpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s);
|
|
|
|
extern char *strncpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s,
|
|
|
|
size_t n);
|
2015-04-10 16:44:37 -07:00
|
|
|
extern char *strchr(const char *s, int c);
|
2016-08-24 14:56:02 +03:00
|
|
|
extern char *strrchr(const char *s, int c);
|
2015-04-10 16:44:37 -07:00
|
|
|
extern size_t strlen(const char *s);
|
|
|
|
extern int strcmp(const char *s1, const char *s2);
|
|
|
|
extern int strncmp(const char *s1, const char *s2, size_t n);
|
2017-02-02 12:01:59 -08:00
|
|
|
extern char *strcat(char *_MLIBC_RESTRICT dest,
|
|
|
|
const char *_MLIBC_RESTRICT src);
|
|
|
|
extern char *strncat(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s,
|
|
|
|
size_t n);
|
2016-07-19 11:54:43 -07:00
|
|
|
extern char *strstr(const char *s, const char *find);
|
2015-04-10 16:44:37 -07:00
|
|
|
|
2015-05-19 11:36:53 +03:00
|
|
|
extern int memcmp(const void *m1, const void *m2, size_t n);
|
2015-04-10 16:44:37 -07:00
|
|
|
extern void *memmove(void *d, const void *s, size_t n);
|
2017-02-02 12:01:59 -08:00
|
|
|
extern void *memcpy(void *_MLIBC_RESTRICT d, const void *_MLIBC_RESTRICT s,
|
|
|
|
size_t n);
|
2015-04-10 16:44:37 -07:00
|
|
|
extern void *memset(void *buf, int c, size_t n);
|
2015-08-14 15:03:59 +03:00
|
|
|
extern void *memchr(const void *s, unsigned char c, size_t n);
|
2015-04-10 16:44:37 -07:00
|
|
|
|
2016-01-22 12:38:49 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-04-10 16:44:37 -07:00
|
|
|
#endif /* __INC_string_h__ */
|