| 1 |
/* Processed by ecpg (regression mode) */ |
| 2 |
/* These include files are added by the preprocessor */ |
| 3 |
#include <ecpglib.h> |
| 4 |
#include <ecpgerrno.h> |
| 5 |
#include <sqlca.h> |
| 6 |
/* Needed for informix compatibility */ |
| 7 |
#include <ecpg_informix.h> |
| 8 |
/* End of automatic include section */ |
| 9 |
#define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y)) |
| 10 |
|
| 11 |
#line 1 "intoasc.pgc" |
| 12 |
#include <stdio.h> |
| 13 |
#include <stdlib.h> |
| 14 |
|
| 15 |
#include "pgtypes_interval.h" |
| 16 |
|
| 17 |
/* exec sql begin declare section */ |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#line 7 "intoasc.pgc" |
| 22 |
char dirty_str [ 100 ] = "aaaaaaaaa_bbbbbbbb_ccccccccc_ddddddddd_" ; |
| 23 |
|
| 24 |
#line 8 "intoasc.pgc" |
| 25 |
interval * interval_ptr ; |
| 26 |
/* exec sql end declare section */ |
| 27 |
#line 9 "intoasc.pgc" |
| 28 |
|
| 29 |
|
| 30 |
int main() |
| 31 |
{ |
| 32 |
interval_ptr = (interval *) malloc(sizeof(interval)); |
| 33 |
interval_ptr->time = 100000000; |
| 34 |
interval_ptr->month = 240; |
| 35 |
|
| 36 |
printf("dirty_str contents before intoasc: %s\n", dirty_str); |
| 37 |
intoasc(interval_ptr, dirty_str); |
| 38 |
printf("dirty_str contents after intoasc: %s\n", dirty_str); |
| 39 |
return 0; |
| 40 |
} |