diff options
author | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2015-05-08 23:07:47 -0400 |
commit | 220534453eecc2c07ad710d72268aafd20b83138 (patch) | |
tree | 469bd5db135e31b7ea908152aa3389b9b1e06d5b /stralloc_opys.c |
initial commit
Diffstat (limited to 'stralloc_opys.c')
-rw-r--r-- | stralloc_opys.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stralloc_opys.c b/stralloc_opys.c new file mode 100644 index 0000000..075b6f8 --- /dev/null +++ b/stralloc_opys.c | |||
@@ -0,0 +1,10 @@ | |||
1 | /* Public domain. */ | ||
2 | |||
3 | #include "byte.h" | ||
4 | #include "str.h" | ||
5 | #include "stralloc.h" | ||
6 | |||
7 | int stralloc_copys(stralloc *sa,const char *s) | ||
8 | { | ||
9 | return stralloc_copyb(sa,s,str_len(s)); | ||
10 | } | ||