alsa.audio: limit the supported frequencies to common set
[AROS.git] / compiler / stdc / ctime_r.c
blob776390052324ced57ff67694430e801fab9165c9
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Return the current time in seconds, reentrant.
6 */
8 /*****************************************************************************
10 NAME */
11 #include <time.h>
13 char * ctime_r (
15 /* SYNOPSIS */
16 const time_t * tt,
17 char * buf)
19 /* FUNCTION
20 The ctime_r() function converts the time value tt into a string with
21 this format:
23 "Wed Jun 30 21:49:08 1993\n"
25 INPUTS
26 tt - Convert this time.
27 buf - Buffer of at least 26 characters to store the string in
29 RESULT
30 The pointer passed in buf, containing the converted time. Note that
31 there is a newline at the end of the buffer.
33 NOTES
35 EXAMPLE
36 time_t tt;
37 char str[26];
39 // Get time
40 time (&tt);
42 // Convert to string
43 ctime (&tt, str);
45 BUGS
47 SEE ALSO
48 time(), asctime_r(), gmtime_r(), localtime_r()
50 INTERNALS
52 ******************************************************************************/
54 struct tm tm;
55 return asctime_r (localtime_r (tt, &tm), buf);
56 } /* ctime */