@@ -22,10 +22,12 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ +#include + #include "stream.h" static bool ctor(void *ptr, va_list args) { @@ -65,10 +67,16 @@ if (stream == NULL || stream->ops == NULL) return false; return stream->ops->write(stream, buf, len); } + +bool +cfw_stream_write_string(void *ptr, const char *str) +{ + return cfw_stream_write(ptr, str, strlen(str)); +} bool cfw_stream_eof(void *ptr) { CFWStream *stream = ptr;