more constness for stralloc and buffer

This commit is contained in:
leitner
2015-02-04 02:57:56 +00:00
parent 38ea25fd9f
commit ed93e203a1
11 changed files with 18 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ stralloc_cat \- append data to a stralloc
.SH SYNTAX
.B #include <stralloc.h>
int \fBstralloc_cat\fP(stralloc* \fIsato\fR,stralloc* \fIsafrom\fR);
int \fBstralloc_cat\fP(stralloc* \fIsato\fR,const stralloc* \fIsafrom\fR);
.SH DESCRIPTION
stralloc_cat appends the string stored in \fIsafrom\fR to \fIsa\fR. It
is the same as

View File

@@ -1,7 +1,7 @@
#include "stralloc.h"
#include "str.h"
extern int stralloc_cat(stralloc *sa,stralloc *sa2) {
extern int stralloc_cat(stralloc *sa,const stralloc *sa2) {
return stralloc_catb(sa,sa2->s,sa2->len);
}