stdio_file.cpp 384 B

1234567891011121314151617181920
  1. //
  2. // $Id$
  3. //
  4. #include<__vic/stdio_file.h>
  5. #include<__vic/throw_errno.h>
  6. namespace __vic {
  7. //----------------------------------------------------------------------------
  8. void stdio_file::close()
  9. {
  10. int st = std::fclose(fp);
  11. fp = nullptr;
  12. if(st) throw_errno("std::fclose");
  13. }
  14. //----------------------------------------------------------------------------
  15. } // namespace