	SECTION _TEXT CLASS=CODE USE32
	SECTION _DATA CLASS=DATA USE32
	SECTION _BSS  CLASS=BSS USE32
	SECTION _CONST  CLASS=CONST USE32
	SECTION _STRING  CLASS=STRING USE32
	SECTION cstartup CLASS=INITDATA USE32
	SECTION crundown CLASS=EXITDATA USE32
	SECTION cppinit  CLASS=CPPINIT USE32
	SECTION cppexit  CLASS=CPPEXIT USE32
	GROUP DGROUP _DATA _BSS _CONST _STRING

SECTION _TEXT
[GLOBAL	_clearerr]
;
; Line 6:	{
;
_clearerr:
	PUSH	EBP
	MOV	EBP,ESP
	PUSH	ESI
	MOV	ESI,DWORD [EBP+08H]
;
; Line 7:		if (stream->token == 0x444c)
;
	MOVSX	EAX,WORD [ESI+01DH]
	CMP	EAX,0444CH
	JNE	SHORT	L_1
;
; Line 8:			stream->flags &= ~(0x0010                    | 0x0020                   );
;
	AND	DWORD [ESI+04H],BYTE 0FFFFFFCFH
L_1:
;
; Line 9:	  errno = _dos_errno = 0;
;
	MOV	DWORD [__dos_errno],00H
	MOV	DWORD [_errno],00H
;
; Line 10:	}
;
	POP	ESI
	POP	EBP
	RET


SECTION _DATA
[EXTERN	__dos_errno]
[EXTERN	_errno]
