aboutsummaryrefslogtreecommitdiff
path: root/src/mlibc/string/strcati.c
blob: d925eb74b1d67ee0abdf780c7059fc6c935919f1 (plain) (blame)
1
2
3
4
5
6
7
#include <mlibc/string.h>

void strcati(char *dest, const char *orig) {
    size_t s_orig = strlen(orig);
    strdisp(dest, (int) s_orig);
    for (size_t i = 0; i < s_orig; i++) dest[i] = orig[i];
}