#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();
}
服務(wù)程序的入口參數(shù)TPSVCINFO
服務(wù)程序返回結(jié)果--- tpreturn()
posted on 2009-02-12 10:55
天書 閱讀(411)
評(píng)論(0) 編輯 收藏 引用