mescc: Tinycc support: strcat.

* mlibc/libc-mes+tcc.c (strcat): Implement.
This commit is contained in:
Jan Nieuwenhuizen 2017-08-01 13:26:17 +02:00
parent 4fbd16aaac
commit cb99e3ca6e

View file

@ -262,8 +262,10 @@ sscanf (char const *str, const char *format, ...)
char *
strcat (char *dest, char const *src)
{
eputs ("strcat stub\n");
return 0;
char *p = strchr (dest, '\0');
while (*src++) *p++ = *src++;
*p = 0;
return dest;
}
char *