NewtIO.h

説明を見る。
00001 /*------------------------------------------------------------------------*/
00013 #ifndef NEWTIO_H
00014 #define NEWTIO_H
00015 
00016 /* ヘッダファイル */
00017 #include <stdio.h>
00018 #include <stdarg.h>
00019 
00020 #include "NewtType.h"
00021 
00022 
00023 /* マクロ */
00024 #define NcGets()                NsGets(kNewtRefNIL)
00025 #define NcGetc()                NsGetc(kNewtRefNIL)
00026 #define NcGetch()               NsGetch(kNewtRefNIL)
00027 
00028 
00030 typedef struct {
00031     FILE *      file;       
00032     newtRefVar  obj;        
00033 } newtStream_t;
00034 
00035 
00036 /* 関数プロトタイプ */
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 
00043 void        NIOSetFile(newtStream_t * stream, FILE * f);
00044 int         NIOFprintf(newtStream_t * stream, const char * format, ...);
00045 int         NIOVfprintf(newtStream_t * stream, const char * format, va_list ap);
00046 int         NIOFputc(int c, newtStream_t * stream);
00047 int         NIOFputs(const char *str, newtStream_t * stream);
00048 
00049 int         NewtFprintf(FILE * f, const char * format, ...);
00050 int         NewtFputc(int c, FILE * f);
00051 int         NewtFputs(const char *str, FILE * f);
00052 
00053 int         NewtDebugMsg(const char * title, const char * format, ...);
00054 
00055 newtRef     NewtFgets(FILE * stream);
00056 newtRef     NsGets(newtRefArg rcvr);
00057 newtRef     NewtFgetc(FILE * stream);
00058 newtRef     NsGetc(newtRefArg rcvr);
00059 newtRef     NsGetch(newtRefArg rcvr);
00060 
00061 
00062 #ifdef __cplusplus
00063 }
00064 #endif
00065 
00066 
00067 #endif /* NEWTIO_H */
00068 

NEWT/0に対してThu Nov 23 16:50:43 2006に生成されました。  doxygen 1.5.0