12.9.4 Foreign stream error handling
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Foreign access to Prolog IO streams
          • Foreign stream error handling
            • Sferror()
            • Sclearerr()
            • Sseterr()
            • Sset_exception()
    • Packages
Availability:C-language interface function
int Sseterr(IOSTREAM *s, int which, const char *message)
Set an error or warning state on the stream. The which argument is one of SIO_WARN or SIO_FERR. This causes PL_release_stream() to print a message (SIO_WARN) or raise an exception (SIO_FERR).