jb_io.h

来自「software for report builder」· C头文件 代码 · 共 71 行

H
71
字号
/******************************************************************/
/*                                                                */
/* Module:       jb_io.h                                          */
/*                                                                */
/* Descriptions: Manages I/O related routines, file and string    */
/*               processing functions.                            */
/*                                                                */
/* Revisions:    1.0 02/22/02                                     */
/*                                                                */
/******************************************************************/

#ifndef JB_IO_H
#define JB_IO_H

#ifndef WINDOWS_NT
#define WINDOWS_NT 1
#endif

#ifndef EMBEDDED
#define EMBEDDED 2
#endif

#ifndef LINUX
#define LINUX 3
#endif

/* FIXME: hardcoded LINUX here - change to -D in Makefile */
#ifdef _LINUX_
#define PORT            LINUX
#endif


#ifndef PORT
#define PORT WINDOWS_NT
#endif

#if PORT==WINDOWS_NT
void  flush_ports(void);
void  CloseNtDriver(void);
void  InitNtDriver(void);
int   VerifyHardware(void);
#elif PORT == LINUX
void	flush_ports		( void );
void	CloseLinuxDriver	( void );
void	InitLinuxDriver		( void );
int	VerifyHardware		( void );
#else /* if PORT == EMBEDDED */
/* put your driver initializating, closing and flushing (optional) code here */
#endif /* PORT */

int   ReadPort(int);
void  WritePort(int port,int data,int test);

int   jb_fopen(char*,char* );
int   jb_fclose(int file_id );
int   jb_fseek(int,int,int );
int   jb_ftell(int finputid );
int   jb_fgetc(int finputid );
char* jb_fgets(char* buffer,int finputid);

void  jb_strcpy(char* a,char* b);
int   jb_str_cmp(char* charset,char* buffer);
int   jb_strlen(const char* str);
int   jb_strcmp(char* a,char* b);
void  jb_strcat(char* dst,char* src);
int   jb_atoi(char* number);
void  jb_toupper(char* str);


#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?