Method

VipsBuffirstline

Declaration [src]

const char*
vips_buf_firstline (
  VipsBuf* buf
)

Description [src]

Trim to just the first line (excluding “\n”).

Return value

Returns: utf8
 

The NULL-terminated contents of the buffer. This is a pointer to the memory managed by the buffer and must not be freed.

 The data is owned by the instance.
 The string is a NUL terminated UTF-8 string.