首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

请帮小弟我解释一下这几行代码unix c

2012-03-03 
请帮我解释一下这几行代码unix c 新进公司,要学习unixcc++oracle等.....实习期时间不多,只有请教各位师长,

请帮我解释一下这几行代码unix c

新进公司,要学习unix   c   c++   oracle   等.....实习期时间不多,只有请教各位师长,要是有人愿意带小弟一两个月就好了.进的是亚信,跟移动作BOSS的.


*UNIX*/
#include   <stdio.h>
#include   <stdlib.h>
#include   <string.h>
#include   <ctype.h>
#include   <unistd.h>
/*   TUXEDO   */
#include   <atmi.h>
//#include   <Uunix.h>
#include   <userlog.h>
/*FML   Header*/
#include   <fml32.h>
#include   <fml1632.h>

#include   "../include/CBill.h "
#include   "../include/ucisflds.h "
#include   "../include/TuxCall.h "
#include   "../include/Exception.h "
//#include   "./ac_func.cpp "


/*proc   required   statement*/
EXEC   SQL   INCLUDE   sqlca;
EXEC   SQL   INCLUDE   sqlda;
EXEC   SQL   INCLUDE   oraca;


int
#if   defined(__STDC__)   ||   defined(__cplusplus)
tpsvrinit(int   argc,   char   **argv)
#else
tpsvrinit(argc,argv)
int   argc;
char   **argv;
#endif
{

if   (tpopen()   ==   -1){
(void)userlog( "tpsvrinit:   failed   to   open   database   due   to   ");
switch   (tperrno){
case   TPEOS:
//(void)userlog( "tpopen   failed,   Unix   error   %d\n ",Uunixerr);
break;
case   TPERELEASE:
(void)userlog( "tpopen   failed,   Incompatible   release\n ");
break;
default:
(void)userlog( "tpopen   failed,   tperrno:   %d\n ",tperrno);
}
argv   =   argv;   argc   =   argc;
return(-1);
}
return(0);
}

void
tpsvrdone()
{

if   (tpclose()   ==   -1){
(void)userlog( "tpsrvdone:   failed   to   close   database   due   to   ");
switch   (tperrno){
case   TPEOS:
//(void)userlog( "tpclose   failed,   Unix   error   %d\n ",   Uunixerr);
break;
case   TPERELEASE:
(void)userlog( "tpclose   failed,   Incompatible   release\n ");
break;
default:
(void)userlog( "tpclose   failed,   tperrno:     %d\n ",tperrno);
}
}
}

[解决办法]
proc + tuxedo
[解决办法]
看看 C语言嵌入SQL 编程

热点排行