Алексей1153, No v takom sluchae "enum{Success,Fail}Result;"po defaultu Success =0 Fail=1-eto raz
ty naverno ne ponyal moy vopros.Ya imel v vidu chto kogda u menya takoy kod:
---------------------------------------------------------------------------------------------
if(fprintf(fd,"%d,%s,%d",dt->day,dt->month,dt->year)==EOF)
return Success;
else
return Fail;
----------------------------------------------------------------------------------------------
ego smysl (esli ya pravil'no ponyal)chto ne bylo otpechatano den',mesyaz,god-togda return Success;esli otpechatano-togda return Fail;