You are not logged in.

#1 2025-07-30 16:29:22

TJM
Member
Registered: 2016-09-18
Posts: 118

Mysterious function signature in Arch man page of strftime

On the Arch man page of the strftime function. There's a mysterious size_t max; in the function signature.

size_t strftime(size_t max;
                char s[restrict max], size_t max,
                const char *restrict format,
                const struct tm *restrict tm);

However, on the official Linux man‑pages, size_t max;  absents.

       size_t strftime(char s[restrict .max], size_t max,
                       const char *restrict format,
                       const struct tm *restrict tm);

Anyone knows what's going on?

Offline

#2 2025-07-30 16:38:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,247

Re: Mysterious function signature in Arch man page of strftime

Your second link is an old version.

Offline

#3 2025-07-30 17:16:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 70,909

Offline

#4 2025-07-30 17:28:06

mpan
Member
Registered: 2012-08-01
Posts: 1,525
Website

Re: Mysterious function signature in Arch man page of strftime

See notes towards the end of GCC → 6.2.1 Arrays of Variable Length.


Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB