.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1995 by Jim Van Zandt .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH GETW 3 "15 marca 2016 r." GNU "Podręcznik programisty Linuksa" .SH NAZWA getw, putw \- odczytywanie i wyprowadzanie słów (wartości typu int) .SH SKŁADNIA .nf \fB#include \fP .PP \fBint getw(FILE *\fP\fIstream\fP\fB);\fP .PP \fBint putw(int \fP\fIw\fP\fB, FILE *\fP\fIstream\fP\fB);\fP .fi .PP .RS -4 Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .RE .PP \fBgetw\fP(), \fBputw\fP(): .ad l .PD 0 .RS 4 .TP 4 Od glibc 2.3.3: _XOPEN_SOURCE && ! (_POSIX_C_SOURCE\ >=\ 200112L) || /* Glibc od 2.19: */ _DEFAULT_SOURCE || /* Glibc w wersji <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .TP Przed glibc 2.3.3: _SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE .RE .PD .ad .SH OPIS \fBgetw\fP() odczytuje słowo (tzn. wartość typu \fIint\fP) ze \fIstream\fP. Jest udostępniona dla zgodności z SVID. Zaleca się korzystanie z \fBfread\fP(3) zamiast niej. .PP \fBputw\fP() zapisuje słowo \fIw\fP (tzn. wartość typu \fIint\fP) do \fIstream\fP. Jest udostępniona dla zgodności z SVID, ale zaleca się korzystanie z \fBfwrite\fP(3) zamiast niej. .SH "WARTOŚĆ ZWRACANA" Normalnie, \fBgetw\fP() zwraca przeczytane słowo, a \fBputw\fP() zwraca 0. W przypadku błędu, zwracają \fBEOF\fP. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lbw14 lb lb l l l. Interfejs Atrybut Wartość T{ \fBgetw\fP(), \fBputw\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .SH "ZGODNE Z" SVr4, SUSv2. Nieobecne w POSIX.1. .SH BŁĘDY Wartość zwracana w przypadku błędu jest również poprawną wartością danych. Można korzystać z \fBferror\fP(3), aby rozróżnić te dwa przypadki. .SH "ZOBACZ TAKŻE" \fBferror\fP(3), \fBfread\fP(3), \fBfwrite\fP(3), \fBgetc\fP(3), \fBputc\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.10 projektu Linux \fIman\-pages\fP. Opis projektu, informacje dotyczące zgłaszania błędów oraz najnowszą wersję oryginału można znaleźć pod adresem \%https://www.kernel.org/doc/man\-pages/. .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Andrzej Krzysztofowicz , Robert Luberda i Michał Kułach . Niniejsze tłumaczenie jest wolną dokumentacją. Bliższe informacje o warunkach licencji można uzyskać zapoznając się z .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License w wersji 3 .UE lub nowszej. Nie przyjmuje się ŻADNEJ ODPOWIEDZIALNOŚCI. Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres .MT manpages-pl-list@lists.sourceforge.net .ME .