Scanf function changes value of in-loop variable

Ali Çehreli acehreli at yahoo.com
Wed Apr 16 11:46:18 PDT 2014


On 04/16/2014 11:36 AM, FreeSlave wrote:
> Note that readf is not equivalent to scanf since readf does not skip
> spaces and newline character. Input must completely match format.

Just like in scanf, a single space character is sufficient to consume 
zero or more whitespace characters.

Ali



More information about the Digitalmars-d-learn mailing list