/usr/lib/gcc/x86_64-linux-gnu/5/include/d/core/stdc/string.d is in libphobos-5-dev 5.5.0-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_string.h.html, _string.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Sean Kelly
* Source: $(DRUNTIMESRC core/stdc/_string.d)
* Standards: ISO/IEC 9899:1999 (E)
*/
module core.stdc.string;
extern (C):
@system:
nothrow:
@nogc:
///
pure void* memchr(in void* s, int c, size_t n);
///
pure int memcmp(in void* s1, in void* s2, size_t n);
///
pure void* memcpy(void* s1, in void* s2, size_t n);
version (Windows)
{
///
int memicmp(in char* s1, in char* s2, size_t n);
}
///
pure void* memmove(void* s1, in void* s2, size_t n);
///
pure void* memset(void* s, int c, size_t n);
///
pure char* strcpy(char* s1, in char* s2);
///
pure char* strncpy(char* s1, in char* s2, size_t n);
///
pure char* strcat(char* s1, in char* s2);
///
pure char* strncat(char* s1, in char* s2, size_t n);
///
pure int strcmp(in char* s1, in char* s2);
///
int strcoll(in char* s1, in char* s2);
///
pure int strncmp(in char* s1, in char* s2, size_t n);
///
size_t strxfrm(char* s1, in char* s2, size_t n);
///
pure char* strchr(in char* s, int c);
///
pure size_t strcspn(in char* s1, in char* s2);
///
pure char* strpbrk(in char* s1, in char* s2);
///
pure char* strrchr(in char* s, int c);
///
pure size_t strspn(in char* s1, in char* s2);
///
pure char* strstr(in char* s1, in char* s2);
///
char* strtok(char* s1, in char* s2);
///
char* strerror(int errnum);
version (CRuntime_Glibc)
{
///
const(char)* strerror_r(int errnum, char* buf, size_t buflen);
}
else version (OSX)
{
int strerror_r(int errnum, char* buf, size_t buflen);
}
else version (FreeBSD)
{
int strerror_r(int errnum, char* buf, size_t buflen);
}
else version (CRuntime_Bionic)
{
///
int strerror_r(int errnum, char* buf, size_t buflen);
}
///
pure size_t strlen(in char* s);
///
char* strdup(in char *s);
|