File Writer Class.
More...
#include <Writer.h>
|
| | FileWriter (FILE *o) |
| | Constructor.
|
| |
| int | putStr (const char *msg, int len) |
| | Add the message to our buffer.
|
| |
| int | putS (const char *msg) |
| | Write out a string using puts()
|
| |
| int | printf (const char *msg) |
| | Write out a string using printf()
|
| |
| int | flush () |
| | Flush the output buffer.
|
| |
◆ FileWriter()
| FileWriter::FileWriter |
( |
FILE * |
o | ) |
|
|
inline |
◆ flush()
| int FileWriter::flush |
( |
| ) |
|
|
inline |
Flush the output buffer.
- Returns
- 0 = success, 1 = fail
◆ printf()
| int FileWriter::printf |
( |
const char * |
msg | ) |
|
|
inline |
Write out a string using printf()
- Parameters
-
- Returns
- number of bytes written
◆ putS()
| int FileWriter::putS |
( |
const char * |
msg | ) |
|
|
inline |
Write out a string using puts()
- Parameters
-
- Returns
- number of bytes written
◆ putStr()
| int FileWriter::putStr |
( |
const char * |
msg, |
|
|
int |
len |
|
) |
| |
|
inline |
Add the message to our buffer.
- Parameters
-
| msg | message string |
| len | message length in bytes |
- Returns
- number of bytes written
The documentation for this class was generated from the following file: