GtkSharp/glue/time_t.c
Mike Kestner ae5ab001be 2004-01-29 Mike Kestner <mkestner@ximian.com>
* 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
2004-01-29 21:20:59 +00:00

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));
}