ae5ab001be
* glib/time_t_CustomMarshaler.cs : new custom marshaler form time_t. * glue/time_t.c : glue for time_t. * glue/Makefile.am : add time_t.c * glue/makefile.win32 : ditto svn path=/trunk/gtk-sharp/; revision=22595
26 lines
423 B
C
26 lines
423 B
C
/* time_t.c : Glue to allocate time_t.
|
|
*
|
|
* Author: Mike Kestner <mkestner@ximian.com>
|
|
*
|
|
* Copyright <c> 2004 Novell, Inc.
|
|
*/
|
|
|
|
#include <glib.h>
|
|
#include <time.h>
|
|
#include <stdio.h>
|
|
|
|
/* Forward declarations */
|
|
gint gtksharp_time_t_sizeof (void);
|
|
void gtksharp_time_t_print (time_t t);
|
|
|
|
gint
|
|
gtksharp_time_t_sizeof ()
|
|
{
|
|
return sizeof (time_t);
|
|
}
|
|
|
|
void
|
|
gtksharp_time_t_print (time_t t)
|
|
{
|
|
printf ("%s\n", ctime (&t));
|
|
}
|