| Код | RETURN VALUE These functions return the number of input items successfully matched and assigned, which can be fewer than provided for, or even zero in the event of an early matching failure.
The value EOF is returned if the end of input is reached before the first successful conversion or matching failure occurs. EOF is also returned if a read error occurs, in which case the error indicator for the stream (see ferror(3)) is set, and errno is set indi- cate the error.
|
EOF, имхо, надежнее здесь проверять.
Добавлено через 36 секунд
Цитата(DigitSphinx @ 29.5.2007, 18:31 ) | | Дает максимальную защиту от глюков ! smile |
Как в рекламе, блин.
|