Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - 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.strings

D header file for POSIX's .

Note Do not mistake this module for (singular), available at core.sys.posix.string.

See Also:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/strings.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/strings.d

public import core.sys.posix.locale : `locale_t`;
pure nothrow @nogc @safe int `ffs`(int `i`);
  Find first bit set in a word
nothrow @nogc @system int `strcasecmp`(scope const char* `s1`, scope const char* `s2`);
  Compare two strings ignoring case
nothrow @nogc @system int `strcasecmp_l`(scope const char* `s1`, scope const char* `s2`, scope locale_t `locale`);
  Compare two strings ignoring case, with the specified locale
nothrow @nogc @system int `strncasecmp`(scope const char* `s1`, scope const char* `s2`, size_t `n`);
  Compare two strings ignoring case, up to n characters
nothrow @nogc @system int `strncasecmp_l`(scope const char* `s1`, const char* `s2`, size_t `n`, locale_t `locale`);
  Compare two strings ignoring case, with the specified locale, up to n characters

Copyright © 1999-2022 by the D Language Foundation | Page generated by Ddoc on Sun Mar 6 22:34:36 2022