aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strcat.c
blob: 3ae8ea0166187e261e0de1d30f5c7a6f27c7f86f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <lib/string.h>

void strcat(char *dest, const char *orig)
{
	u32 s_dest = strlen(dest);
	u32 s_orig = strlen(orig);

	for (u32 i = 0; i < s_orig; i++)
		dest[s_dest + i] = orig[i];
	dest[s_dest + s_orig] = 0;
}