@@ -6,10 +6,12 @@ * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ + +#include #import "OFObject.h" @class OFString; @class OFDataArray; @@ -264,10 +266,20 @@ * \param fmt A string used as format * \return The number of bytes written */ - (size_t)writeFormat: (OFString*)fmt, ...; +/** + * Writes a formatted string into the stream. + * + * \param fmt A string used as format + * \param args The arguments used in the format string + * \return The number of bytes written + */ +- (size_t)writeFormat: (OFString*)fmt + withArguments: (va_list)args; + /** * Closes the stream. */ - close; @end