📄 prepc.h
字号:
/***********************************************************************//* *//* MODULE: prepc.h 1.5 *//* DATE: 18:32:08 - 98/09/23 *//* PURPOSE: Structure definitions, function prototypes, macros, *//* and symbol definitions for pREPC+/68K version 2.1 *//* *//*---------------------------------------------------------------------*//* *//* Copyright 1991, 1992, Integrated Systems, Inc. *//* ALL RIGHTS RESERVED *//* *//* Permission is hereby granted to licensees of Integrated Systems, *//* Inc. products to use or abstract this computer program for the *//* sole purpose of implementing a product based on Integrated *//* Systems, Inc. products. No other rights to reproduce, use, *//* or disseminate this computer program, whether in part or in *//* whole, are granted. *//* *//* Integrated Systems, Inc. makes no representation or warranties *//* with respect to the performance of this computer program, and *//* specifically disclaims any responsibility for any damages, *//* special or consequential, connected with the use of this program. *//* *//***********************************************************************/#if defined(__cplusplus)extern "C" {#endif/*---------------------------------------------------------------------*//* Don't allow this file to be included more than once. *//*---------------------------------------------------------------------*/#ifndef _PREPC_H#define _PREPC_H#include "stdio.h" /* FILE, size_t, and fpos_t definitions */#include "stdarg.h" /* va_list definition */#include "errno.h" /* errno definition *//***********************************************************************//* General Definitions *//***********************************************************************/#include <types.h>#ifdef __TCS__#include <string.h>#include <stdlib.h>#else/***********************************************************************//* pREPC+ System Calls *//***********************************************************************/double atof(const char *str);int atoi(const char *str);long atol(const char *str);void *bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));void *calloc(size_t num, size_t size);void clearerr(FILE *fp);int fclose(FILE *fp);int feof(FILE *fp);int ferror(FILE *fp);int fflush(FILE *fp);int fgetc(FILE *fp);int fgetpos(FILE *fp, fpos_t *pos);char *fgets(char *str, int len, FILE *fp);FILE *fopen(const char *file, const char *mode);int fprintf(FILE *fp, const char *control, ...);int fputc(int letter, FILE *fp);int fputs(const char *str, FILE *fp);size_t fread(void *buf, size_t size, size_t itemcnt, FILE *fp);void free(void *ptr);FILE *freopen(const char *file, const char *mode, FILE *fp);int fscanf(FILE *fp, const char *control, ...);int fseek(FILE *fp, long offset, int base);int fsetpos(FILE *fp, const fpos_t *pos);long ftell(FILE *fp);size_t fwrite(const void *buf, size_t size, size_t itemcnt, FILE *fp);int getc(FILE *fp);int getchar(void);char *gets(char *str);void *malloc(size_t num);void *memchr(const void *buf, int value, size_t size);int memcmp(const void *buf1, const void *buf2, size_t size);void *memcpy(void *to, const void *from, size_t size);void *memmove(void *to, const void *from, size_t size);void *memset(void *buf, int val, size_t len);void perror(const char *str);int printf(const char *control, ...);int putc(int letter, FILE *fp);int putchar(int letter);int puts(const char *str);void qsort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *));int rand(void);void *realloc(void *buf, size_t size);int remove(const char *file);int rename(const char *oldname, const char *newname);void rewind(FILE *fp);int scanf(const char *control, ...);void setbuf(FILE *fp, char *buf);int setvbuf(FILE *fp, char *buf, int mode, size_t size);int sprintf(char *str, const char *control, ...);void srand(unsigned int seed);int sscanf(const char *str, const char *control, ...);char *strcat(char *to, const char *from);char *strchr(const char *str, int c);int strcmp(const char *str1, const char *str2);char *strcpy(char *to, const char *from);size_t strcspn(const char *str, const char *set);size_t strlen(const char *str);char *strncat(char *to, const char *from, size_t len);int strncmp(const char *str1, const char *str2, size_t len);char *strncpy(char *to, const char *from, size_t len);char *strpbrk(const char *str, const char *set);char *strrchr(const char *str, int c);size_t strspn(const char *str, const char *set);char *strstr(const char *str, const char *substr);double strtod(const char *str, char **end);char *strtok(char *str, const char *set);long strtol(const char *str, char **end, int base);ULONG strtoul(const char *str, char **end, int base);FILE *tmpfile(void);char *tmpname(char *str); /* ISI version */char *tmpnam(char *str); /* standard C version */int ungetc(int c, FILE *fp);int vfprintf(FILE *fp, const char *control, va_list args);int vprintf(const char *control, va_list args);int vsprintf(char *str, const char *control, va_list args);long get_errno(void);/***********************************************************************//* pREPC+ Macro Definitions *//***********************************************************************/#if defined(__cplusplus)/*---------------------------------------------------------------------*//* exit() & abort() are defined in exit.c, under class lib directory *//*---------------------------------------------------------------------*/void exit(...);void abort(...);#else/*---------------------------------------------------------------------*//* exit() closes components and then terminates. All components that *//* are present should be closed. As shipped, only pREPC+ is closed. *//* If your system includes other components, exit() should be edited *//* appropriately. Do not close absent components. *//* (Use close_f(0) to close pHILE+, close(0) to close pNA+). *//*---------------------------------------------------------------------*/#define exit(status) { \ if (status != 0) \ fprintf(stderr,"Error code = %d\n",status); \ fclose(0); \ if (t_delete(0) != 0) \ t_suspend(0); \ }#define abort() exit(0)#endif /* For C++ */#endif /* __TCS__ *//*---------------------------------------------------------------------*//* #endif for prepc.h include *//*---------------------------------------------------------------------*/#endif#if defined(__cplusplus)}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -