posts - 124,  comments - 29,  trackbacks - 0
#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 天书 阅读(406) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理



<2009年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

常用链接

留言簿(5)

随笔档案

文章分类

文章档案

好友的Bolg

搜索

  •  

最新评论

阅读排行榜

评论排行榜