diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 11:03:35 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-08-03 11:03:35 -0400 |
commit | cf83c3318fb43ebfce468477c9fb6ad64c96e440 (patch) | |
tree | b6f4bdade340a0f1ed24e1ae5b34072e6814ef8e /src/c | |
parent | c0b7963e91681045bb4c82a2356776fae54f54c5 (diff) |
Cjrize EStrcat
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/lacweb.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/c/lacweb.c b/src/c/lacweb.c index c744271c..7ee6daef 100644 --- a/src/c/lacweb.c +++ b/src/c/lacweb.c @@ -505,3 +505,18 @@ void lw_Basis_htmlifyString_w(lw_context ctx, lw_Basis_string s) { } } } + +lw_Basis_string lw_Basis_strcat(lw_context ctx, lw_Basis_string s1, lw_Basis_string s2) { + int len = strlen(s1) + strlen(s2) + 1; + char *s; + + lw_check(ctx, len); + + s = ctx->heap_front; + + strcpy(s, s1); + strcat(s, s2); + ctx->heap_front += len; + + return s; +} |