Function

ICalGLibmemory_append_char

since: 1.0

Declaration [src]

void
i_cal_memory_append_char (
  gchar** buf,
  gchar** pos,
  size_t* buf_size,
  gchar ch
)

Description [src]

Append the character to the buffer. Only use them on normally allocated memory, or on buffers created from icalmemory_new_buffer, never with buffers created by icalmemory_tmp_buffer. If icalmemory_append_string has to resize a buffer on the ring, the ring will loose track of it and you will have memory problems.

Available since: 1.0

Parameters

buf

Type: An array of char

The buffer to be appended. It should not be the memory in ical.

The argument will be modified by the function.
The length of the array is specified in the buf_size argument.
The caller of the function takes ownership of the data, and is responsible for freeing it.
pos

Type: An array of char

The position at which the new string to be appended.

The argument will be modified by the function.
The caller of the function takes ownership of the data, and is responsible for freeing it.
buf_size

Type: size_t*

The size of the buffer before appended.

The argument will be modified by the function.
ch

Type: gchar

The character to be allocated.