core.sys.posix.string - D Programming Language
Description: D Programming Language
Keywords: D programming language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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.

See Also:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/string.h.html
License:
Boost License 1.0
Authors:
Mathias 'Geod24' Lang
Standards:
The Open Group Base Specifications Issue 7, 2018 edition

Source core/sys/posix/string.d

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);
nothrow @nogc char* `strndup`(scope const char* `str`, size_t `len`);
  Save a copy of a string
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

Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Fri Jun 2 08:59:09 2023