Tuxedo 实现字符串的大写转换
1.开发的环境:AIX、Informix
2.客户端的程序Client.c
#include <stdio.h>
#include <string.h>
#include "atmi.h"
int main(int argc,char *argv[])
{
char *buf;
long len;
char *recvbuf;
if(argc != 2) {
(void) fprintf(stderr, "Usage: simpcl string ");
exit(1);
}
printf("Client is running....\n");
if (tpinit((TPINIT *) NULL) == -1) {
(void) fprintf(stderr, "Tpinit failed ");
exit(1);
}
len = strlen(argv[1]);
if((buf = (char *) tpalloc("STRING", NULL, len+1)) == NULL) {
(void) fprintf(stderr,"Error allocating send buffer ");
tpterm();
exit(1);
}
if((recvbuf = (char *) tpalloc("STRING", NULL, len+1)) == NULL) {
(void) fprintf(st