⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jb_io.h

📁 software for report builder
💻 H
字号:
/******************************************************************/
/*                                                                */
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -