Diff for libplaton/platon/str/dynfgets.h between version 1.6 and 1.7
| version 1.6, 2002/08/16 20:31:43 |
version 1.7, 2002/08/27 13:12:33 |
|
|
| |
|
| #include <stdio.h> |
#include <stdio.h> |
| |
|
| |
#ifndef PLATON_FUNC |
| |
# define PLATON_FUNC(_name) _name |
| |
#endif |
| |
#ifndef PLATON_FUNC_STR |
| |
# define PLATON_FUNC_STR(_name) #_name |
| |
#endif |
| |
|
| /* Size of input buffer. In others words, size of realloc() step. */ |
/* Size of input buffer. In others words, size of realloc() step. */ |
| #define DYNAMIC_FGETS_BUFSIZE (128) |
#define DYNAMIC_FGETS_BUFSIZE (128) |
| |
|
|
|
| * Returns line in dynamically allocated buffer. Length of line is unlimited. |
* Returns line in dynamically allocated buffer. Length of line is unlimited. |
| * On end of file or not of memory error returns NULL. |
* On end of file or not of memory error returns NULL. |
| */ |
*/ |
| #ifdef PLATON_PREFIX |
char *PLATON_FUNC(dynamic_fgets)(FILE *fp); |
| char *FUNCTION(dynamic_fgets)(FILE *fp); |
|
| #else |
|
| char *dynamic_fgets(FILE *fp); |
|
| #endif |
|
| |
|
| #ifdef __cplusplus |
#ifdef __cplusplus |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|