more constness for stralloc and buffer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user