1
/* Processed by ecpg (regression mode) */
2
/* These include files are added by the preprocessor */
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))
11
#line 1 "rfmtlong.pgc"
14
#include <pgtypes_error.h>
18
* This file tests various forms of long-input/output by means of
24
check_return(int ret);
27
fmtlong(long lng, char *fmt)
33
r = rfmtlong(lng, fmt, buf);
37
printf("%d: %s (fmt was: %s)\n", i++, buf, fmt);
48
fmtlong(-8494493, "-<<<<,<<<,<<<,<<<");
49
fmtlong(-8494493, "################");
50
fmtlong(-8494493, "+++$$$$$$$$$$$$$.##");
51
fmtlong(-8494493, "(&,&&&,&&&,&&&.)");
52
fmtlong(-8494493, "<<<<,<<<,<<<,<<<");
53
fmtlong(-8494493, "$************.**");
54
fmtlong(-8494493, "---$************.**");
55
fmtlong(-8494493, "+-+################");
56
fmtlong(-8494493, "abc: ################+-+");
57
fmtlong(-8494493, "+<<<<,<<<,<<<,<<<");
67
case ECPG_INFORMIX_ENOTDMY:
68
printf("(ECPG_INFORMIX_ENOTDMY)");
70
case ECPG_INFORMIX_ENOSHORTDATE:
71
printf("(ECPG_INFORMIX_ENOSHORTDATE)");
73
case ECPG_INFORMIX_BAD_DAY:
74
printf("(ECPG_INFORMIX_BAD_DAY)");
76
case ECPG_INFORMIX_BAD_MONTH:
77
printf("(ECPG_INFORMIX_BAD_MONTH)");
80
printf("(unknown ret: %d)", ret);