1 /*****************************************************************************/ 2 /* XMangekyou - a kaleidoscope for X */ 3 /* Programed by Sakai Hiroaki. */ 4 /* */ 5 /* Copyright (c) 1998 Sakai Hiroaki. */ 6 /* All Rights Reserved. */ 7 /* */ 8 /* XMangekyou is a kaleidoscope. You can see many, many, many patterns, */ 9 /* but, care for yourself from 'trip' filling! */ 10 /* */ 11 /* XMangekyou is a free software. You may copy or distribute the original */ 12 /* XMangekyou freely. But, you may not modify or distribute the original */ 13 /* XMangekyou without permission of the author. */ 14 /*****************************************************************************/ 15 16 #ifndef _XMANGEKYOU_STRING_H_INCLUDED_ 17 #define _XMANGEKYOU_STRING_H_INCLUDED_ 18 19 /*****************************************************************************/ 20 /* Include Header Files. */ 21 /*****************************************************************************/ 22 23 #include <stdio.h> 24 #include <stdlib.h> 25 26 /*****************************************************************************/ 27 /* Definitions of Parameters. */ 28 /*****************************************************************************/ 29 30 #define READ_FROM_FILE 0 31 #define READ_FROM_STRING 1 32 #define READ_FROM_SOCKET 2 33 34 /*****************************************************************************/ 35 /* Reading String. */ 36 /*****************************************************************************/ 37 38 int GetCharFromPointer(void * p, int flag); 39 int CheckWord(int c, char * s); 40 int ReadString(void * p, int type, char * string, int size, 41 char * split, char * comment, char * lineend, char * quotation); 42 int ReadInt(FILE * fp); 43 signed char ReadChar(FILE * fp); 44 45 #endif 46 47 /*****************************************************************************/ 48 /* End of File. */ 49 /*****************************************************************************/ 50