|
CX Framework
Cross-platform C utility framework
|
Functions | |
| StreamBuffer * | sbufStrCreatePush (string *strout, size_t targetsz) |
Convenience functions for common string streaming patterns.
| StreamBuffer * sbufStrCreatePush | ( | string * | strout, |
| size_t | targetsz | ||
| ) |
StreamBuffer *sbufStrCreatePush(string *strout, size_t targetsz)
Creates a stream buffer configured for string output in push mode.
This is a convenience function for the common pattern of creating a stream buffer where the caller acts as a producer in push mode and output goes to a string.
| strout | String to append output data to |
| targetsz | Target buffer size in bytes |
Example: