/******************************************************************************* glibc string functions. Copyright: Copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved. License: Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details). *******************************************************************************/ module ocean.stdc.gnu..string; import ocean.transition; import core.stdc.stddef: wchar_t; extern (C): size_t strnlen(in char* s, size_t maxlen); size_t wcsnlen(in wchar_t* ws, size_t maxlen); void* mempcpy(void* to, void *from, size_t size); wchar_t* wmempcpy(wchar_t* wto, wchar_t* wfrom, size_t size); wchar_t* wcsdup (in wchar_t* ws); char* strndup(in char* s, size_t size); int strverscmp(in char* s1, in char* s2); Inout!(void)* rawmemchr(Inout!(void)* block, int c); Inout!(void)* memrchr(Inout!(void)* block, int c, size_t size); Inout!(char)* strchrnul(Inout!(char)* str, int c); Inout!(wchar_t)* wcschrnul(Inout!(wchar_t)* wstr, wchar_t wc); Inout!(void)* memmem(Inout!(void)* haystack, size_t hlen, in void *needle, size_t nlen); static if (__VERSION__ < 2070) { char* strerror_r(int errnum, char *buf, size_t buflen); }