source:
rtems/testsuites/psxtests/psxhdrs/time09.c
@
077184fd
Last change on this file since 077184fd was 077184fd, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/12/11 at 04:19:11 | |
---|---|
|
|
File size: 602 bytes |
Rev | Line | |
---|---|---|
[73c5da6a] | 1 | /* |
2 | * This test file is used to verify that the header files associated with | |
[2a53f31] | 3 | * invoking this function are correct. |
[73c5da6a] | 4 | * |
[7a9030a0] | 5 | * COPYRIGHT (c) 1989-2009. |
[73c5da6a] | 6 | * On-Line Applications Research Corporation (OAR). |
7 | * | |
[98e4ebf5] | 8 | * The license and distribution terms for this file may be |
9 | * found in the file LICENSE in this distribution or at | |
[3c48599] | 10 | * http://www.rtems.com/license/LICENSE. |
[73c5da6a] | 11 | * |
12 | * $Id$ | |
13 | */ | |
14 | ||
[cafefbf] | 15 | #ifdef HAVE_CONFIG_H |
16 | #include "config.h" | |
17 | #endif | |
18 | ||
[73c5da6a] | 19 | #include <time.h> |
[1b4f2b30] | 20 | |
[077184fd] | 21 | int test( void ); |
[7a9030a0] | 22 | |
[077184fd] | 23 | int test( void ) |
[73c5da6a] | 24 | { |
25 | time_t time; | |
26 | struct tm *timestruct; | |
[1b4f2b30] | 27 | |
[73c5da6a] | 28 | timestruct = localtime( &time ); |
[077184fd] | 29 | |
30 | return (timestruct != NULL); | |
[73c5da6a] | 31 | } |
Note: See TracBrowser
for help on using the repository browser.