![]() |
O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
|
Create input streams from strings. More...
Go to the source code of this file.
Macros | |
#define | string_literal_input_stream(Value) |
Create an input stream with the content of a C string. | |
#define | StringInputStream |
Use the RAII idiom with a string input stream. |
Functions | |
istream_t | string_input_stream (const string_t *value) |
Create an input stream with the content of a string. | |
istream_t | cstring_input_stream (const char *value, size_t length) |
Create an input stream with the content of a C string. |
Create input streams from strings.
Definition in file string_input_stream.h.
#define string_literal_input_stream | ( | Value | ) |
Create an input stream with the content of a C string.
Definition at line 30 of file string_input_stream.h.
#define StringInputStream |
Use the RAII idiom with a string input stream.
In a situation where one wants to declare an istream variable on the stack in the local scope, this "typedef" can be used for the file to be closed automatically when the variable goes out of scope.
It means this "typedef" can only be used like this :
Definition at line 49 of file string_input_stream.h.