PostgreSQL Source Code  git master
compat_informix-intoasc.c File Reference
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <ecpg_informix.h>
#include <stdio.h>
#include <stdlib.h>
#include "pgtypes_interval.h"
Include dependency graph for compat_informix-intoasc.c:

Go to the source code of this file.


#define ECPGdebug(X, Y)   ECPGdebug((X)+100,(Y))


int main ()


char dirty_str [100] = "aaaaaaaaa_bbbbbbbb_ccccccccc_ddddddddd_"

Macro Definition Documentation

◆ ECPGdebug

#define ECPGdebug (   X,
)    ECPGdebug((X)+100,(Y))

Definition at line 9 of file compat_informix-intoasc.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 30 of file compat_informix-intoasc.c.

31 {
32  interval_ptr = (interval *) malloc(sizeof(interval));
33  interval_ptr->time = 100000000;
34  interval_ptr->month = 240;
36  printf("dirty_str contents before intoasc: %s\n", dirty_str);
38  printf("dirty_str contents after intoasc: %s\n", dirty_str);
39  return 0;
40 }
interval * interval_ptr
char dirty_str[100]
#define malloc(a)
Definition: header.h:50
int intoasc(interval *i, char *str)
Definition: informix.c:653
#define printf(...)
Definition: port.h:244

References dirty_str, interval_ptr, intoasc(), malloc, interval::month, printf, and interval::time.

Variable Documentation

◆ dirty_str

char dirty_str[100] = "aaaaaaaaa_bbbbbbbb_ccccccccc_ddddddddd_"

Definition at line 22 of file compat_informix-intoasc.c.

Referenced by main().

◆ interval_ptr

interval* interval_ptr

Definition at line 25 of file compat_informix-intoasc.c.

Referenced by main().