Logo Search packages:      
Sourcecode: rapple version File versions  Download package

static void config_copy_buf ( rpl_str_t *  dest  )  [static]

Copy the contents of cfg_str_buf into dest. Convenience function used throughout this file.

dest Pointer to return buffer contents.

Definition at line 90 of file confp.c.

References rpl_me_malloc().

Referenced by config_end().

    size_t length;

    assert(cfg_str_buf != NULL);

    length = strlen(cfg_str_buf) + 1;
    *dest = (rpl_str_t)rpl_me_malloc(length);
    snprintf(*dest, length, "%s", cfg_str_buf);
    str_capture = 0;
    //  rpl_me_free(cfg_str_buf);

Generated by  Doxygen 1.6.0   Back to index