#include<stdio.h>
#include"atmi.h" /*TUXEDO HeaderFile*/
main(int argc, char *argv[])
{
char *buf;
long sendlen,rcvlen;
int ret;
if(tpinit(TPINIT*)NULL==-1){
......
}
sendlen = strlen(argv[1]);
if
( (buf =
(char*
)tpalloc("STRING",NULL,sendlen+1)
) == NULL
){
......
}
(void)strcpy(buf,argv[1]);
ret = tpcall("TOUPPER",(char*)buf,0,(char**)&buf,&rcvlen,(long)0);
if(ret == -1){
......
}
(void)fprint(stdout,"Retruned string is:%\n",buf);
tpfree(buf);
tpterm();
}
服务程序的入口参数TPSVCINFO
服务程序返回结果--- tpreturn()
posted on 2009-02-12 10:55
天书 阅读(407)
评论(0) 编辑 收藏 引用