aboutsummaryrefslogtreecommitdiff
path: root/pc-bios/s390-ccw/libc.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc-bios/s390-ccw/libc.h')
-rw-r--r--pc-bios/s390-ccw/libc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/libc.h b/pc-bios/s390-ccw/libc.h
index 818517ff5d..bcdc45732d 100644
--- a/pc-bios/s390-ccw/libc.h
+++ b/pc-bios/s390-ccw/libc.h
@@ -67,6 +67,17 @@ static inline size_t strlen(const char *str)
return i;
}
+static inline char *strcat(char *dest, const char *src)
+{
+ int i;
+ char *dest_end = dest + strlen(dest);
+
+ for (i = 0; i <= strlen(src); i++) {
+ dest_end[i] = src[i];
+ }
+ return dest;
+}
+
static inline int isdigit(int c)
{
return (c >= '0') && (c <= '9');