Files
cppdraft_translate/cppdraft/diff/mods/to/declarations.md
2025-10-25 03:02:53 +03:00

74 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[diff.mods.to.declarations]
# Annex C (informative) Compatibility [[diff]](./#diff)
## C.8 C standard library [[diff.library]](diff.library#diff.mods.to.declarations)
### C.8.4 Modifications to declarations [diff.mods.to.declarations]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3769)
Header [<cstring>](cstring.syn#header:%3ccstring%3e "27.5.1Header <cstring> synopsis[cstring.syn]"):
The following functions have different declarations:
- [(1.1)](#1.1)
strchr
- [(1.2)](#1.2)
strpbrk
- [(1.3)](#1.3)
strrchr
- [(1.4)](#1.4)
strstr
- [(1.5)](#1.5)
memchr
Subclause [[cstring.syn]](cstring.syn "27.5.1Header <cstring> synopsis") describes the changes[.](#1.sentence-2)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3782)
Header [<cwchar>](cwchar.syn#header:%3ccwchar%3e "28.7.3Header <cwchar> synopsis[cwchar.syn]"):
The following functions have different declarations:
- [(2.1)](#2.1)
wcschr
- [(2.2)](#2.2)
wcspbrk
- [(2.3)](#2.3)
wcsrchr
- [(2.4)](#2.4)
wcsstr
- [(2.5)](#2.5)
wmemchr
Subclause [[cwchar.syn]](cwchar.syn "28.7.3Header <cwchar> synopsis") describes the changes[.](#2.sentence-2)
[3](#3)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/compatibility.tex#L3795)
Header [<cstddef>](cstddef.syn#header:%3ccstddef%3e "17.2.1Header <cstddef> synopsis[cstddef.syn]") declares the names nullptr_t, byte, and to_integer,
and the operators and operator templates in [[support.types.byteops]](support.types.byteops "17.2.5byte type operations"),
in addition to the names declared in[<stddef.h>](support.c.headers.general#header:%3cstddef.h%3e "17.15.1General[support.c.headers.general]") in the C standard library[.](#3.sentence-1)