source: mainline/uspace/lib/c/include/string.h@ cd1e3fc0

Last change on this file since cd1e3fc0 was d7f7a4a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 3 years ago

Replace some license headers with SPDX identifier

Headers are replaced using tools/transorm-copyright.sh only
when it can be matched verbatim with the license header used
throughout most of the codebase.

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[99d3123]1/*
[d7f7a4a]2 * SPDX-FileCopyrightText: 2018 Jiri Svoboda
[99d3123]3 *
[d7f7a4a]4 * SPDX-License-Identifier: BSD-3-Clause
[99d3123]5 */
6
7/** @addtogroup libc
8 * @{
9 */
10/** @file
11 */
12
[4805495]13#ifndef _LIBC_STRING_H_
14#define _LIBC_STRING_H_
[99d3123]15
[ea4910b]16#if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H) && \
17 !defined(_LIBC_SOURCE)
[99d3123]18#error Please use str.h and mem.h instead
19#endif
20
[bc56f30]21#include <_bits/decls.h>
[99d3123]22#include <_bits/size_t.h>
23#include <_bits/NULL.h>
24#include <mem.h>
25
[bc56f30]26__C_DECLS_BEGIN;
27
[99d3123]28extern char *strcpy(char *, const char *);
29extern char *strncpy(char *, const char *, size_t);
30extern char *strcat(char *, const char *);
31extern char *strncat(char *, const char *, size_t);
32extern int strcmp(const char *, const char *);
33extern int strcoll(const char *, const char *);
34extern int strncmp(const char *, const char *, size_t);
[9a5ae815]35extern size_t strxfrm(char *, const char *, size_t);
[99d3123]36extern char *strchr(const char *, int);
37extern size_t strcspn(const char *, const char *);
38extern char *strpbrk(const char *, const char *);
39extern char *strrchr(const char *, int);
40extern size_t strspn(const char *, const char *);
41extern char *strstr(const char *, const char *);
42extern char *strtok(char *, const char *);
43extern char *__strtok_r(char *, const char *, char **);
44extern char *strerror(int);
45extern size_t strlen(const char *);
46
[098e16a5]47#if defined(_HELENOS_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_LIBC_SOURCE)
[ea4910b]48extern size_t strnlen(const char *, size_t);
49extern char *strdup(const char *);
50extern char *strndup(const char *, size_t);
51#endif
52
[bc56f30]53__C_DECLS_END;
54
[99d3123]55#endif
56
57/** @}
58 */
Note: See TracBrowser for help on using the repository browser.