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)
ACPI_SIZE strlen(const char *String)
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
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
#define down2(f, fl1, fl2)