src/imap/imap.c
/*
 * Returns NULL in case an error has occurred.
 */
Returns NULL in case an error has occurred.
Returns NULL in case an error has occurred .
imap_t * imap_new(void)
{
    imap_t * imap = (imap_t *) calloc(
            1,
            sizeof(imap_t) + IMAP_NODE_SZ * sizeof(imap_node_t));
    if (imap == NULL)
    {
        return NULL;
    }
    imap->len = 0;
    imap->slist = NULL;
    return imap;
}
imap_t * imap_new ( void ) { imap_t * imap = ( imap_t * ) calloc ( 1 , sizeof ( imap_t ) + IMAP_NODE_SZ * sizeof ( imap_node_t ) ) ; if ( imap == NULL ) { return NULL ; } imap -> len = 0 ; imap -> slist = NULL ; return imap ; }
Returns NULL in case an error has occurred.
Returns NULL in case an error has occurred .