openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/libsmartcols/src/line.c
struct libscols_line* scols_new_line(void)
{
    struct libscols_line* ln;

    ln = calloc(1, sizeof(*ln));
    if (!ln)
        return NULL;

    DBG(LINE, ul_debugobj(ln, "alloc"));
    ln->refcount = 1;
    INIT_LIST_HEAD(&ln->ln_lines);
    INIT_LIST_HEAD(&ln->ln_children);
    INIT_LIST_HEAD(&ln->ln_branch);
    return ln;
}
/**
 * scols_new_line:
 *
 * Note that the line is allocated without cells, the cells will be allocated
 * later when you add the line to the table. If you want to use the line
 * without table then you have to explicitly allocate the cells by
 * scols_line_alloc_cells().
 *
 * Returns: a pointer to a new struct libscols_line instance.
 */
Note that the line is allocated without cells, the cells will be allocated
later when you add the line to the table. If you want to use the line
without table then you have to explicitly allocate the cells by
scols_line_alloc_cells().

a pointer to a new struct libscols_line instance.
Note that the line is allocated without cells the cells will be allocated later when you add the line to the table . If you want to use the line without table then you have to explicitly allocate the cells by scols_line_alloc_cells () . a pointer to a new struct libscols_line instance .
struct libscols_line* scols_new_line(void)
{
    struct libscols_line* ln;
    ln = calloc(1, sizeof(*ln));
    if (!ln)
        return NULL;
    DBG(LINE, ul_debugobj(ln, "alloc"));
    ln->refcount = 1;
    INIT_LIST_HEAD(&ln->ln_lines);
    INIT_LIST_HEAD(&ln->ln_children);
    INIT_LIST_HEAD(&ln->ln_branch);
    return ln;
}
struct libscols_line * scols_new_line ( void ) { struct libscols_line * ln ; ln = calloc ( 1 , sizeof ( * ln ) ) ; if ( ! ln ) return NULL ; DBG ( LINE , ul_debugobj ( ln , " " ) ) ; ln -> refcount = 1 ; INIT_LIST_HEAD ( & ln -> ln_lines ) ; INIT_LIST_HEAD ( & ln -> ln_children ) ; INIT_LIST_HEAD ( & ln -> ln_branch ) ; return ln ; }
scols_new_line:
 Note that the line is allocated without cells, the cells will be allocated
 later when you add the line to the table.
scols_new_line : Note that the line is allocated without cells the cells will be allocated later when you add the line to the table .