text
stringlengths 0
234
|
---|
.\" .. by the ddn network information center. |
.pp |
each line is of the following format: |
.pp |
.rs |
.i protocol number aliases ... |
.re |
.pp |
where the fields are delimited by spaces or tabs. |
empty lines are ignored. |
if a line contains a hash mark (#), the hash mark and the part |
of the line following it are ignored. |
.pp |
the field descriptions are: |
.tp |
.i protocol |
the native name for the protocol. |
for example |
.ir ip , |
.ir tcp , |
or |
.ir udp . |
.tp |
.i number |
the official number for this protocol as it will appear within the ip |
header. |
.tp |
.i aliases |
optional aliases for the protocol. |
.pp |
this file might be distributed over a network using a network-wide |
naming service like yellow pages/nis or bind/hesiod. |
.sh files |
.tp |
.i /etc/protocols |
the protocols definition file. |
.sh see also |
.br getprotoent (3) |
.pp |
.ur http://www.iana.org\:/assignments\:/protocol\-numbers |
.ue |
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.\" copyright (c) bruno haible <[email protected]> |
.\" |
.\" %%%license_start(gplv2+_doc_onepara) |
.\" this is free documentation; you can redistribute it and/or |
.\" modify it under the terms of the gnu general public license as |
.\" published by the free software foundation; either version 2 of |
.\" the license, or (at your option) any later version. |
.\" %%%license_end |
.\" |
.\" references consulted: |
.\" gnu glibc-2 source code and manual |
.\" dinkumware c library reference http://www.dinkumware.com/ |
.\" opengroup's single unix specification http://www.unix-systems.org/online.html |
.\" iso/iec 9899:1999 |
.\" |
.th mbsrtowcs 3 2021-03-22 "gnu" "linux programmer's manual" |
.sh name |
mbsrtowcs \- convert a multibyte string to a wide-character string |
.sh synopsis |
.nf |
.b #include <wchar.h> |
.pp |
.bi "size_t mbsrtowcs(wchar_t *restrict " dest ", const char **restrict " src , |
.bi " size_t " len ", mbstate_t *restrict " ps ); |
.fi |
.sh description |
if |
.i dest |
is not null, the |
.br mbsrtowcs () |
function converts the |
multibyte string |
.i *src |
to a wide-character string starting at |
.ir dest . |
at most |
.i len |
wide characters are written to |
.ir dest . |
the shift state |
.i *ps |
is updated. |
the conversion is effectively performed by repeatedly |
calling |
.i "mbrtowc(dest, *src, n, ps)" |
where |
.i n |
is some |
positive number, as long as this call succeeds, and then incrementing |
Subsets and Splits