Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

core.sys.posix.string

D header file for POSIX's .

Note

  • The header shall define NULL and size_t as described in . However, D has builtin null and size_t is defined in object.

Authors:
Mathias 'Geod24' Lang
Standards:
The Open Group Base Specifications Issue 7, 2018 edition
public import core.sys.posix.locale : locale_t;
Exposes locale_t as defined in core.sys.posix.locale (<locale.h>)
public import core.stdc.string;
Exposes the C99 functions
C extensions and XSI extensions are missing
pure nothrow @nogc void* memccpy(return scope void* dst, scope const void* src, int c, size_t n);
Copy string until character found
pure nothrow @nogc char* stpcpy(return scope char* dst, scope const char* src);

pure nothrow @nogc char* stpncpy(return scope char* dst, const char* src, size_t len);
Copy string (including terminating '\0')
nothrow @nogc int strcoll_l(scope const char* s1, scope const char* s2, locale_t locale);
Compare strings according to current collation
nothrow @nogc char* strerror_l(int, locale_t);
pure nothrow @nogc size_t strnlen(scope const char* str, size_t maxlen);
Find length of string up to maxlen
nothrow @nogc const(char)* strsignal(int);
System signal messages
pure nothrow @nogc char* strtok_r(return scope char* str, scope const char* sep, char** context);
Isolate sequential tokens in a null-terminated string
nothrow @nogc size_t strxfrm_l(char* s1, scope const char* s2, size_t n, locale_t locale);
Transform a string under locale