src/fmt.c
/** Add one character to a string.
 *
 * \return 1
 */
Add one character to a string.
\return 1
Add one character to a string . \ return 1
size_t str_add_char(char ** dst, size_t * cap, char c)
{
    if(dst && cap && (*cap > 1))
    {
        **dst = c;
        ++(*dst);
        --(*cap);
        **dst = '\0';
    }
    else
    {
        str_rst_dst(dst, cap);
    }
    return 1;
}
size_t str_add_char ( char * * dst , size_t * cap , char c ) { if ( dst && cap && ( * cap > 1 ) ) { * * dst = c ; ++ ( * dst ) ; -- ( * cap ) ; * * dst = ' \0 ' ; } else { str_rst_dst ( dst , cap ) ; } return 1 ; }
Add one character to a string.
Add one character to a string .