PostgreSQL Source Code: src/interfaces/ecpg/test/expected/compat_informix-charfuncs.c File Reference (original) (raw)
#include <[ecpglib.h](ecpglib%5F8h%5Fsource.html)>#include <[ecpgerrno.h](ecpgerrno%5F8h%5Fsource.html)>#include <[sqlca.h](sqlca%5F8h%5Fsource.html)>#include <[ecpg_informix.h](ecpg%5F%5Finformix%5F8h%5Fsource.html)>#include <stdio.h>#include <stdlib.h>#include <[sqltypes.h](sqltypes%5F8h%5Fsource.html)>

Go to the source code of this file.
◆ ECPGdebug
◆ main()
Definition at line 16 of file compat_informix-charfuncs.c.
17{
18 char t1[] = "abc def ghi ";
19
20 char buf[50];
21 int k;
22
26
27 k = 2;
29 printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
30 k = 5;
32 printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
33 k = 9;
35 printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
36 k = 15;
38 printf("byleng(t1, %d): %d, ldchar: _%s_\n", k, byleng(t1, k), buf);
39
40
41 return 0;
42}
void ldchar(char *src, int len, char *dest)
int byleng(char *str, int len)
static char buf[DEFAULT_XLOG_SEG_SIZE]
References buf, byleng(), fb(), ldchar(), printf, and rupshift().