summaryrefslogtreecommitdiff
path: root/bittorrent/mbtstr/src/pushcstr.c
blob: d15776e870c4abd6c06a7e1da2a4689a6f08ce89 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "mbtstr/str.h"

bool mbt_str_pushcstr(struct mbt_str *str, const char *cstr)
{
    if (cstr == NULL)
        return false;
    for (size_t i = 0; cstr[i]; i++)
        if (!mbt_str_pushc(str, cstr[i]))
            return false;
    return true;
}