Function gnunet_sys::GNUNET_buffer_write_path[][src]

pub unsafe extern "C" fn GNUNET_buffer_write_path(
    buf: *mut GNUNET_Buffer,
    str_: *const c_char
)

Write a path component to a buffer, ensuring that there is exactly one slash between the previous contents of the buffer and the new string.

@param buf buffer to write to @param str string containing the new path component