Checks the return value from a fopen‐style function and throws using an explicit saved errno.

Synopsis

Declared in <folly/Exception.h>

template<class... Args>
void
checkFopenErrorExplicit(
    FILE* fp,
    int savedErrno,
    Args&&... args);

Parameters

Name

Description

fp

The FILE* returned by the fopen‐style call.

savedErrno

The previously saved error number to report.

args

Components concatenated into the failure message.

Created with MrDocs