| 1 | #include "EXTERN.h" | ||
| 2 | #include "perl.h" | ||
| 3 | #include "XSUB.h" | ||
| 4 | |||
| 5 | #include "ppport.h" | ||
| 6 | |||
| 7 | #include "format.c" | ||
| 8 | |||
| 9 | |||
| 10 | MODULE = Time::Format_XS PACKAGE = Time::Format_XS | ||
| 11 | |||
| 12 | SV * | ||
| 13 | time_format(char *fmt, SV * in_time); | ||
| 14 | CODE: | ||
| 15 | 0 | char *ret = time_format(fmt, in_time); | |
| 16 | 0 | RETVAL = newSVpv(ret, 0); | |
| 17 | 0 | free(ret); | |
| 18 | OUTPUT: | ||
| 19 | RETVAL |