00001
00002
00003
00004
00005
00006
00007
00008 #ifndef NPS_FGETL_H
00009 #define NPS_FGETL_H
00010 #if !defined BUILDING_fast_getl && !defined NPS_SMALL
00011 # define NPS_FGETL_LKG static inline
00012 #else
00013 # define NPS_FGETL_LKG extern
00014 #endif
00015
00016 #ifndef NPS_FGETL_SIZE
00017 #define NPS_FGETL_SIZE 1028
00018 #endif
00019
00020 #if NPS_FGETL_SIZE < 8
00021 #error "NPS_FGETL_SIZE should be >= 8"
00022 #endif
00023
00024 #include <stdlib.h>
00025 #define _GNU_SOURCE
00026 #include <stdio.h>
00027 #include <string.h>
00028 #include <errno.h>
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 NPS_FGETL_LKG ssize_t nps_fgetl(char **, size_t *, FILE *);
00042
00043
00044
00045 #endif