.\" -*- coding: UTF-8 -*- .\" Copyright 2001 Walter Harms (walter.harms@informatik.uni-oldenburg.de) .\" .\" %%%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 .\" .\" aeb: some corrections .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH DYSIZE 3 "15 marca 2016 r." GNU "Podręcznik programisty Linuksa" .SH NAZWA dysize \- podaje liczbe dni zadanego roku .SH SKŁADNIA \fB#include \fP .PP \fBint dysize(int \fP\fIrok\fP\fB);\fP .PP .in -4n Wymagane ustawienia makr biblioteki glibc (patrz \fBfeature_test_macros\fP(7)): .in .PP \fBdysize\fP(): Od glibc 2.19: _DEFAULT_SOURCE Glibc 2.19 i wcześniejsze: _BSD_SOURCE || _SVID_SOURCE .SH OPIS Funkcja zwraca 365 dla zwykłego roku, a 366 dla roku przestępnego. Określenie, czy rok jest przestępny, odbywa się według formuły: .PP .in +4n .EX (rok) %4 == 0 && ((rok) %100 != 0 || (rok) %400 == 0) .EE .in .PP Wzór ten jest zdefiniowany jako makro \fI__isleap(rok)\fP, które można również znaleźć w \fI\fP. .SH ATRYBUTY Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku \fBattributes\fP(7). .TS allbox; lb lb lb l l l. Interfejs Atrybut Wartość T{ \fBdysize\fP() T} Bezpieczeństwo wątkowe MT\-Safe .TE .SH "ZGODNE Z" Funkcja ta pojawiła się w SunOS 4.x. .SH UWAGI .\" The SCO version of this function had a year-2000 problem. Ta funkcja powstała jedynie dla celów zgodności. Nie należy jej używać w nowych programach. .SH "ZOBACZ TAKŻE" \fBstrftime\fP(3) .SH "O STRONIE" Angielska wersja tej strony pochodzi z wydania 5.04 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 .