24 #define fgetline __no__fgetline__ 25 #define getline __no__getline__ 27 #define FAST_GETC_PUTC 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)
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
EXPORT int fgetline __PR((FILE *, char *, int))
EXPORT int js_fgetline(register FILE *f, char *buf, register int len)
GLenum GLuint GLenum GLsizei const GLchar * buf
#define down2(f, fl1, fl2)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
EXPORT int js_getline(char *buf, int len)