src/atchannel.c
/** add an intermediate response to p_response*/
add an intermediate response to p_response
add an intermediate response to p_response
static void addIntermediate(ATChannel* atch, const char *line)
{
    ATLine *p_new;
    p_new = (ATLine  *) calloc(1, sizeof(ATLine));
    p_new->line = strdup(line);
    p_new->p_next = atch->impl->p_response->p_intermediates;
    atch->impl->p_response->p_intermediates = p_new;
}
static void addIntermediate ( ATChannel * atch , const char * line ) { ATLine * p_new ; p_new = ( ATLine * ) calloc ( 1 , sizeof ( ATLine ) ) ; p_new -> line = strdup ( line ) ; p_new -> p_next = atch -> impl -> p_response -> p_intermediates ; atch -> impl -> p_response -> p_intermediates = p_new ; }
add an intermediate response to p_response
add an intermediate response to p_response
/* note: this adds to the head of the list, so the list
       will be in reverse order of lines received. the order is flipped
       again before passing on to the command issuer */