About the following commit:

commit 60ab5f117d813b6ea7bdd6dacc1a771ea63edc6d
Author: Kevin McCarthy <ke...@8t8.us>
Date:   2021-10-20 03:48:47 +0200

    Add internal mutt_ctime() implementation.
    
    ctime() is marked obsolescent in the POSIX guide, so we ought to stop
    using it to ensure future portability.

ctime() may be marked obsolescent in the POSIX guide, but it is still
specified by ISO C, and AFAIK, not marked obsolescent there, even in
the latest C2x draft N2176.

Moreover, ISO C says: "It is equivalent to

  asctime(localtime(timer))"

So, if you want to replace ctime(), why no using just that?
... unless there is an issue with asctime(), in which case ctime()
would be affected as a consequence.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to