istream_reset_wr()
#
Resets the write pointer of the istream_h
stream, effectively clearing any written data.
Prototype
int istream_reset_wr(
istream_h istream
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Handle to the input stream whose write pointer will be reset. |
Return Value
Returns 0 on success, or -1 if the istream
handle is NULL or invalid.
Notes
This function clears the write pointer but does not deallocate the buffer. Use istream_clear()
to reset both read and write pointers.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples