www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/14/23:43:04

Xref: news2.mv.net comp.os.msdos.djgpp:4986
From: ph AT olfieldfornax (Pierre HANSER)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Behavior of fscanf in V2
Date: 14 Jun 1996 07:40:18 GMT
Organization: Alcatel
Lines: 10
Sender: ph AT olfield (Pierre HANSER)
Message-ID: <4pr512$4pr@kimberley.sxb.bsf.alcatel.fr>
References: <199606131829 DOT PAA00693 AT coe DOT ufrj DOT br>
NNTP-Posting-Host: olfield.sxb.bsf.alcatel.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

it's a bug in scanf. If I remember, returns 0 instead of EOF
an other aspect of the bug is that if you try reading more than 1 item
with scanf and the input does not provide all of them, it always returns 0
items read, even if it should have partially succeded in parsing the input.
-- 
Email: Pierre DOT HANSER AT sxb DOT bsf DOT alcatel DOT fr		ALCATEL TELECOM
					     Communication Sets
Tel: +33 88 67 78	      1, route du Docteur A. Schweitzer
Fax: +33 88 67 77 25	        F-67408 ILLKIRCH Cedex - FRANCE
---

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019