buffer_puts(3)

buffer_puts3

Write asciiz string to buffer

Usage

#include <libowfat/buffer.h>

int buffer_puts(buffer* b,const char* x);

Overview

buffer_puts is like buffer_put with len determined as the number of bytes before the first \0 in x.

The difference to buffer_putsalign is that, when there isn't enough space for new data, buffer_puts calls buffer_flush before copying any data, while buffer_putsalign fills all available space with data before calling buffer_flush.

Return value

buffer_puts returns 0 if everything was fine, -1 on error (setting errno).

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–11
  2. 12–13

From libowfat-dev 0.32-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.