.\" -*- coding: UTF-8 -*- '\" t .\" Copyright (c) 1990, 1991 The Regents of the University of California. .\" and Copyright (C) 2021 Michael Kerrisk .\" All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek and the American National Standards Committee X3, .\" on Information Processing Systems. .\" .\" SPDX-License-Identifier: BSD-4-Clause-UC .\" .\" @(#)ferror.3 6.8 (Berkeley) 6/29/91 .\" .\" .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ferror 3 "20 lipca 2023 r." "Linux man\-pages 6.05.01" .SH NAZWA clearerr, feof, ferror \- sprawdzenie i zmiana stanu strumienia .SH BIBLIOTEKA Standardowa biblioteka C (\fIlibc\fP, \fI\-lc\fP) .SH SKŁADNIA .nf \fB#include \fP .PP \fBvoid clearerr(FILE *\fP\fIstream\fP\fB);\fP \fBint feof(FILE *\fP\fIstream\fP\fB);\fP \fBint ferror(FILE *\fP\fIstream\fP\fB);\fP .fi .SH OPIS Funkcja \fBclearerr\fP() usuwa znaczniki końca pliku i błędu dla strumienia wskazywanego przez \fIstream\fP. .PP Funkcja \fBfeof\fP() sprawdza znacznik końca pliku dla strumienia wskazywanego przez \fIstream\fP, zwracając wartość niezerową, jeśli jest ustawiony. Znacznik końca pliku może zostać usunięty tylko za pomocą funkcji \fBclearerr\fP(). .PP Funkcja \fBferror\fP() sprawdza znacznik błędu dla strumienia wskazywanego przez \fIstream\fP, zwracając wartość niezerową, jeśli jest ustawiony. Znacznik błędu może zostać usunięty tylko za pomocą funkcji \fBclearerr\fP(). .PP Informacje o nieblokujących odpowiednikach znajdują się w \fBunlocked_stdio\fP(3). .SH "WARTOŚĆ ZWRACANA" The \fBfeof\fP() function returns nonzero if the end\-of\-file indicator is set for \fIstream\fP; otherwise, it returns zero. .PP The \fBferror\fP() function returns nonzero if the error indicator is set for \fIstream\fP; otherwise, it returns zero. .SH BŁĘDY These functions should not fail and do not set \fIerrno\fP. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfejs Atrybut Wartość T{ .na .nh \fBclearerr\fP(), \fBfeof\fP(), \fBferror\fP() T} Bezpieczeństwo wątkowe MT\-bezpieczne .TE .sp 1 .SH STANDARDY C11, POSIX.1\-2008. .SH HISTORIA C89, POSIX.1\-2001. .SH UWAGI .\"https://www.austingroupbugs.net/view.php?id=401 POSIX.1\-2008 specifies that these functions shall not change the value of \fIerrno\fP if \fIstream\fP is valid. .SH CAVEATS Normally, programs should read the return value of an input function, such as \fBfgetc\fP(3), before using functions of the \fBfeof\fP(3) family. Only when the function returned the sentinel value \fBEOF\fP it makes sense to distinguish between the end of a file or an error with \fBfeof\fP(3) or \fBferror\fP(3). .SH "ZOBACZ TAKŻE" \fBopen\fP(2), \fBfdopen\fP(3), \fBfileno\fP(3), \fBstdio\fP(3), \fBunlocked_stdio\fP(3) .PP .SH TŁUMACZENIE Autorami polskiego tłumaczenia niniejszej strony podręcznika są: Adam Byrtek , Andrzej Krzysztofowicz , Robert Luberda i Michał Kułach . .PP 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. .PP Błędy w tłumaczeniu strony podręcznika prosimy zgłaszać na adres listy dyskusyjnej .MT manpages-pl-list@lists.sourceforge.net .ME .