HomeFreeBSD

ctime.3: Add a note about a possible return value of localtime(3)

Description

ctime.3: Add a note about a possible return value of localtime(3)

The localtime(3) function returns a NULL pointer, if the passed in-time
translates to a year that will not fit in an integer type. It is stricly
recommended to check the return value to avoid garage output.

Reported by: mckusick
Reviewed by: mckusick, imp, rpokala
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36515

Details

Provenance
gbeAuthored on Sep 16 2022, 6:38 PM
Reviewer
mckusick
Differential Revision
D36515: ctime.3: Add a note about a possible return value to the description of localtime(3)
Parents
rGe9e615c88a74: Fix dead references (wrong section) to sysctl(8).
Branches
Unknown
Tags
Unknown