1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-08 01:31:13 +00:00

FILENAME_MAX comment

SCCS-file: localtime.c
SCCS-SID: 7.42
This commit is contained in:
Arthur David Olson
1995-01-28 21:01:48 -05:00
committed by Paul Eggert
parent 0fc48af31b
commit cc274ccf02

View File

@ -259,6 +259,13 @@ register struct state * const sp;
return -1;
{
register int doaccess;
/*
** Section 4.9.1 of the C standard says that
** "FILENAME_MAX expands to an integral constant expression
** that is the sie needed for an array of char large enough
** to hold the longest file name string that the implementation
** guarantees can be opened."
*/
char fullname[FILENAME_MAX + 1];
if (name[0] == ':')