Debian Codegraph @

share/libc/time.c

raw
1 /**************************************************************************/
2 /* */
3 /* This file is part of Frama-C. */
4 /* */
5 /* Copyright (C) 2007-2022 */
6 /* CEA (Commissariat à l'énergie atomique et aux énergies */
7 /* alternatives) */
8 /* */
9 /* you can redistribute it and/or modify it under the terms of the GNU */
10 /* Lesser General Public License as published by the Free Software */
11 /* Foundation, version 2.1. */
12 /* */
13 /* It is distributed in the hope that it will be useful, */
14 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
15 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
16 /* GNU Lesser General Public License for more details. */
17 /* */
18 /* See the GNU Lesser General Public License version 2.1 */
19 /* for more details (enclosed in the file licenses/LGPLv2.1). */
20 /* */
21 /**************************************************************************/
22
23 #include "time.h"
24 #include "__fc_builtin.h"
25 __PUSH_FC_STDLIB
26
27 extern char __fc_ctime[26];
28
29 extern char *ctime(const time_t *timer) {
30 //@ assert \valid_read(timer);
31 //@ assert \initialized(timer);
32 Frama_C_make_unknown(__fc_ctime, 26);
33 __fc_ctime[25] = 0;
34 return __fc_ctime;
35 }
36
37 __POP_FC_STDLIB