aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <r _at_ uzy .dot. me>2012-05-19 12:09:44 (CEST)
committerp4bl0 <r _at_ uzy .dot. me>2012-05-19 12:09:44 (CEST)
commitb81d2c58e015fc1279ad5753378c294cdd871ca6 (patch)
treec7ac98545e364172deb33c394221fbf720337fd8
parent3a8536a8e63bd64831010ed49671c4eb52d33112 (diff)
downloadelispon-b81d2c58e015fc1279ad5753378c294cdd871ca6.zip
elispon-b81d2c58e015fc1279ad5753378c294cdd871ca6.tar.gz
rename size in length for string
-rw-r--r--src/string.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/string.c b/src/string.c
index 4ade9c0..7673d34 100644
--- a/src/string.c
+++ b/src/string.c
@@ -3,7 +3,7 @@
#include "string.h"
struct String {
- int size;
+ int length;
char *buf;
};
@@ -14,8 +14,8 @@ String_new (const char *str)
alloc_one(self);
- self->size = strlen(str);
- alloc_(self->buf, self->size + 1);
+ self->length = strlen(str);
+ alloc_(self->buf, self->length + 1);
strcpy(self->buf, str);
return self;
@@ -41,7 +41,7 @@ String_buf (String *self)
int
String_length (String *self)
{
- return self->size;
+ return self->length;
}
/* ----- */
Pablo Rauzy — generated by cgit