diff --git a/libfatstr/Makefile b/libfatstr/Makefile index 222a846..d432184 100644 --- a/libfatstr/Makefile +++ b/libfatstr/Makefile @@ -1,2 +1,2 @@ libfatstr.o: libfatstr.c libfatstr.h - $(CC) -g -o libfatstr.o libfatstr.c + $(CC) -c -g -o libfatstr.o libfatstr.c diff --git a/libfatstr/libfatstr.c b/libfatstr/libfatstr.c index 3279e5e..dc1e58a 100644 --- a/libfatstr/libfatstr.c +++ b/libfatstr/libfatstr.c @@ -1,6 +1,6 @@ #include /* free(3), malloc(3), realloc(3) */ #include /* strncpy(3) */ -#include "fatstr.h" +#include "libfatstr.h" /* quick and dirty ASCII edition */ diff --git a/libfatstr/libfatstr.h b/libfatstr/libfatstr.h index bd78287..0f56839 100644 --- a/libfatstr/libfatstr.h +++ b/libfatstr/libfatstr.h @@ -1,6 +1,6 @@ -typedef FatStr_size_t size_t; -typedef FatStr_scalar_t int; -typedef FatStr_vector_t FatStr_scalar_t *; +typedef size_t FatStr_size_t; +typedef int FatStr_scalar_t; +typedef FatStr_scalar_t * FatStr_vector_t; struct FatStr{ FatStr_size_t a; /* allocation */ @@ -9,7 +9,7 @@ struct FatStr{ }; struct FatStr *FatStr_append(struct FatStr *p, FatStr_scalar_t c); -FatStr_vector_t FatStr_convert(struct FatStr *p); +char *FatStr_convert(struct FatStr *p); struct FatStr *FatStr_destruct(struct FatStr *p); struct FatStr *FatStr_initialize(struct FatStr *p); -struct FatStr *FatStr_trimfront( +struct FatStr *FatStr_trimfront();