执行成功返回非负数。执行失败返回EOF。如果参数为NULL,则设置errno为EINVAL,并返回EOF。
int puts( const char *string );用返回值判断puts函数是否处理正常,非负数是正常。
查MSDN。