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

📄 sl-lc2.c

📁 PC-Lint是一种静态代码检测工具
💻 C
字号:
/*lint -clc

    Standard Library Definitions -- Lattice 2.1x Version

    With this variation of the standard library description,
    library headers are assumed to NOT contain prototypes.
    (If your compiler supports prototypes use a file similar
    to those having names of the form: sl-xxx.lnt).

    This file contains declarations of standard library functions
    for use with PC-Lint.  When provided to PC-Lint along with
    other modules, the functions declared here are considered
    defined with the properties given.

    This file may not be complete.  Your compiler may contain
    many other functions not declared here.
    You may modify or augment this file so that it more
    closely conforms to the library provided with your compiler.

    The include file "stdio.h" is provided with your compiler.

 */


/*lint -e746  don't insist on a prototype for each call */
/*lint -$  establish $ as an identifier character */

/*lint -save  save the current error suppression state */
/*lint -library  library flag -- Don't get upset if these externals
              are not referenced or defined */


#include "stdio.h"

typedef char *UNIV;     /* universal pointer */
typedef char *STRING;   /* string */
typedef const char *CSTRING;   /* constant string */

/*  If your compiler supports the void type replace the following
    with #define VOID void.
 */
#define VOID            /* function returns nothing */
typedef FILE *STREAM;   /* a universal file designator */


/*lint +fvr
  The following functions exhibit variable return modes.
  That is, they may equally-usefully be called for a value
  as called just for their effects.
 */


int     close(int);
int     creat( CSTRING, int );
int     fclose(STREAM);
int     fputc( int, STREAM );
int     fputs( STRING, STREAM );
int     free(UNIV);
int     fseek( STREAM, long, int );
int     fwrite( UNIV, int, int, STREAM );
long    lseek( int, long, int );
int     puts( STRING );
STRING  strcat( STRING, STRING );
STRING  strcpy( STRING, STRING );
STRING  strncat( STRING, STRING, int);
STRING  strncpy( STRING, STRING, int);
int     unlink( STRING );
int     write( int, UNIV, int);

/*lint +fva1  arguments vary after the first */
int     printf(STRING);
int     scanf(STRING);
/*lint +fva2  arguments vary after the second */
int     fprintf(STREAM, CSTRING);
int     fscanf(STREAM, STRING);
int     sprintf(STRING, STRING);
int     sscanf(STRING, STRING);
/*lint -fva  end of varying arguments */


extern struct _iobuf _iob[_NFILE];
int     _filbf(STREAM);
int     _flsbf(int,STREAM);

extern char    _ctype[256];

double  atof(STRING);
int     atoi(STRING);
long    atol(STRING);
int     bdos(int, int);
UNIV    calloc(unsigned, unsigned);
VOID    exit(int);
int     fgetc(STREAM);
STRING  fgets( STRING, int, STREAM );
STREAM  fopen( STRING, STRING );
int     fread( UNIV, int, int, STREAM );
STREAM  freopen( STRING, STRING, STREAM );
long    ftell( STREAM );
STRING  gets( UNIV );
int     isalnum(char);
int     isalpha(char);
int     isascii(char);
int     isdigit(char);
int     islower(char);
int     isprint(char);
int     isspace(char);
int     isupper(char);
VOID    main( int, char**);
UNIV    malloc(unsigned);
VOID    movmem( UNIV, UNIV, unsigned );
int     open( STRING, int );
int     read( int, UNIV, int );
int     strcmp( STRING, STRING );
int     strlen( STRING );
int     strncmp( STRING, STRING, int );
int     tolower(char);
int     toupper(char);

/*  Math functions; if you need them, #define math 1  */

#define math 0
#if math
double  acos(double);
double  asin(double);
double  atan(double);
double  atan2(double,double);
double  ceil(double);
double  cos(double);
double  cosh(double);
double  exp(double);
double  exp10(double);
double  fabs(double);
double  floor(double);
double  fmod(double,double);
double  frexp(double,int*);
double  ldexp(double,int);
double  log(double);
double  log10(double);
double  modf(double,double*);
double  pow(double, double);
double  sin(double);
double  sqrt(double);
double  tan(double);
double  tanh(double);
#endif


/*lint -restore Restore error messages to state last "-save"d
       This option is only necessary if flags of the form
       -e... appear after the -save above and to inhibit their
       propogation to later files */

⌨️ 快捷键说明

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