Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/* string.h */
|
|
|
|
/*
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __INC_string_h__
|
|
#define __INC_string_h__
|
|
|
|
#include <stddef.h>
|
|
#include <bits/restrict.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern char *strcpy(char *_Restrict d, const char *_Restrict s);
|
|
extern char *strncpy(char *_Restrict d, const char *_Restrict s, size_t n);
|
|
extern char *strchr(const char *s, int c);
|
|
extern char *strrchr(const char *s, int c);
|
|
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);
|
|
extern char *strcat(char *_Restrict dest, const char *_Restrict src);
|
|
extern char *strncat(char *_Restrict d, const char *_Restrict s, size_t n);
|
|
extern char *strstr(const char *s, const char *find);
|
|
|
|
extern int memcmp(const void *m1, const void *m2, size_t n);
|
|
extern void *memmove(void *d, const void *s, size_t n);
|
|
extern void *memcpy(void *_Restrict d, const void *_Restrict s, size_t n);
|
|
extern void *memset(void *buf, int c, size_t n);
|
|
extern void *memchr(const void *s, unsigned char c, size_t n);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __INC_string_h__ */
|