diff --git a/libfatstr/Makefile b/libfatstr/Makefile index d432184..fc93cd7 100644 --- a/libfatstr/Makefile +++ b/libfatstr/Makefile @@ -1,2 +1 @@ -libfatstr.o: libfatstr.c libfatstr.h - $(CC) -c -g -o libfatstr.o libfatstr.c +libfatstr.o: diff --git a/libfatstr/libfatstr.h b/libfatstr/libfatstr.h index 0eb6176..f6d0c00 100644 --- a/libfatstr/libfatstr.h +++ b/libfatstr/libfatstr.h @@ -18,6 +18,8 @@ struct FatStr{ * Otherwise returns p. */ struct FatStr *FatStr_append(struct FatStr *p, FatStr_scalar_t c); +struct FatStr *FatStr_construct(struct FatStr *p); + /* FatStr_convert * - FatStr *p: object to convert * Returns NULL if the operation failed (due to malloc(3)) or if p was NULL. @@ -30,5 +32,6 @@ char *FatStr_convert(struct FatStr *p); * Returns NULL. */ struct FatStr *FatStr_destruct(struct FatStr *p); +struct FatStr *FatStr_grow(struct FatStr *p, size_t units); struct FatStr *FatStr_initialize(struct FatStr *p); struct FatStr *FatStr_trimfront(struct FatStr *p, size_t units);