24#define fgetline __no__fgetline__
25#define getline __no__getline__
35#ifndef NO_GETLINE_COMPAT
38#ifdef HAVE_PRAGMA_WEAK
39#pragma weak fgetline = js_fgetline
40#pragma weak getline = js_getline
65#if !defined(getc) && defined(USE_FGETS_FOR_FGETLINE)
83 if (bp[
len-1] ==
'\n')
99 register char *bp =
buf;
100#if defined(HAVE_USG_STDIO) || defined(FAST_GETC_PUTC)
103 register int nl =
'\n';
104 register int c =
'\0';
114#if defined(HAVE_USG_STDIO) || defined(FAST_GETC_PUTC)
117 if ((
__c f)->_cnt <= 0) {
118 if (usg_filbuf(
f) ==
EOF) {
131 if (
n > (
__c f)->_cnt)
133 p = movecbytes((
__c f)->_ptr, bp,
'\n',
n);
163 while ((
c =
getc(
f)) >= 0 &&
c != nl)
int CDECL getc(FILE *file)
char *CDECL fgets(char *s, int size, FILE *file)
_ACRTIMP size_t __cdecl strlen(const char *)
EXPORT int js_getline(char *buf, int len)
EXPORT int js_fgetline(register FILE *f, char *buf, register int len)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define down2(f, fl1, fl2)