/* Returns a new xmlBufPtr unless the call failed and NULL is returned  */
xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer)
/* Returns a new xmlBufPtr unless the call failed and NULL is returned  */
xmlBufPtr xmlBufFromBuffer(xmlBufferPtr buffer)
{
	xmlBufMemoryError(NULL, "creating buffer");
        return(NULL);
    }
    ret->use = buffer->use;
    ret->size = buffer->size;
    ret->compat_use = buffer->use;
    ret->compat_size = buffer->size;
    ret->error = 0;
    ret->buffer = buffer;
    ret->alloc = buffer->alloc;
    ret->content = buffer->content;
    ret->contentIO = buffer->contentIO;
    return(ret);
}