]> pd.if.org Git - pdclib/blobdiff - internals/_PDCLIB_int.h
Allowed precision to be negative / ignored.
[pdclib] / internals / _PDCLIB_int.h
index d9e7f07508a5aac6b3cf2fe229149d360a1416ad..0614deba1f32aaa7f350b958fe81badcc86f2c09 100644 (file)
@@ -344,7 +344,7 @@ struct _PDCLIB_status_t
     char *           s;      /* *sprintf(): target buffer                    */
                              /* *sscanf():  source string                    */
     _PDCLIB_size_t   width;  /* specified field width                        */
-    _PDCLIB_size_t   prec;   /* specified field precision                    */
+    int              prec;   /* specified field precision                    */
     struct _PDCLIB_file_t * stream; /* *fprintf() / *fscanf() stream         */
     _PDCLIB_va_list  arg;    /* argument stack                               */
 };
@@ -404,6 +404,9 @@ int _PDCLIB_prepwrite( struct _PDCLIB_file_t * stream );
 /* Closing all streams on program exit */
 void _PDCLIB_closeall( void );
 
+/* Check if a given year is a leap year. Parameter is offset to 1900. */
+int _PDCLIB_is_leap( int year_offset );
+
 /* -------------------------------------------------------------------------- */
 /* errno                                                                      */
 /* -------------------------------------------------------------------------- */