abic.h

Sapphire/src/include/abic.h · 1.8 KB

From the archive sapphire_0.3.zip

Download the archive   « Back to the archive contents

/*
 * Copyright (C) 1995-1997 Christopher D. Granz
 *
 * This header may not be removed.
 *
 * Refer to the file "License" included in this package for further
 * information and before using any of the following.
 */

#ifndef __ABIC_H__
#define __ABIC_H__

#include "emerald.h"


/*
 * Prototypes
 */

/*
 * main.c
 */
int             main                                  ( int, char *[] );

/*
 * memory.c
 */
void *          alloc_mem                           ( register size_t );
void *          realloc_mem        ( register void *, register size_t );
void            free_mem                           ( register void ** );
void            zero_out           ( register void *, register size_t );
char *          str_dup                             ( register char * );
char *          unstr_dup                          ( register char ** );

/*
 * fileio.c
 */
FILE *          open_file                            ( char *, char * );
void            close_file                                   ( FILE * );
char            fget_letter                                  ( FILE * );
char *          fget_word                                    ( FILE * );
char *          fget_string                                  ( FILE * );

/*
 * error.c
 */
void            warning                                 ( char *, ... );
void            error                                   ( char *, ... );
void            fatal                                   ( char *, ... );


/*
 * Globals
 */
extern int                                                        errno;

extern char                                                   cNullChar;

extern char *                                               pCOFilename;
extern long                                                lCurrentLine;

#endif /* __ABIC_H__ */


/*
 * End of abic.h
 */

Site Stats

Snippets: 1791
Codebases: 571