Logo Search packages:      
Sourcecode: libical version File versions

void* icalmemory_tmp_buffer ( size_t  size  ) 

Create a new temporary buffer on the ring. Libical owns these and will deallocate them.

Definition at line 181 of file icalmemory.c.

References icalmemory_add_tmp_buffer().

Referenced by icalmemory_tmp_copy().

    char *buf;

    if (size < MIN_BUFFER_SIZE){
      size = MIN_BUFFER_SIZE;
    buf = (void*)malloc(size);

    if( buf == 0){
      return 0;



    return buf;

Generated by  Doxygen 1.6.0   Back to index