diff options
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 | } | ||