PostgreSQL Source Code
git master
compat_informix-intoasc.c
Go to the documentation of this file.
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
}
interval_ptr
interval * interval_ptr
Definition:
compat_informix-intoasc.c:25
dirty_str
char dirty_str[100]
Definition:
compat_informix-intoasc.c:22
main
int main()
Definition:
compat_informix-intoasc.c:30
ecpg_informix.h
ecpgerrno.h
ecpglib.h
malloc
#define malloc(a)
Definition:
header.h:50
intoasc
int intoasc(interval *i, char *str)
Definition:
informix.c:672
pgtypes_interval.h
printf
#define printf(...)
Definition:
port.h:244
sqlca.h
interval
Definition:
pgtypes_interval.h:24
interval::month
long month
Definition:
pgtypes_interval.h:26
interval::time
int64 time
Definition:
pgtypes_interval.h:25
src
interfaces
ecpg
test
expected
compat_informix-intoasc.c
Generated on Tue Nov 12 2024 06:13:25 for PostgreSQL Source Code by
1.9.1