1
0

make buildable

This commit is contained in:
dtb 2023-08-29 21:17:47 -04:00
parent 87bc04b75a
commit f2268e471a
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
#include <stdlib.h> /* free(3), malloc(3), realloc(3) */
#include <string.h> /* strncpy(3) */
#include "fatstr.h"
#include "libfatstr.h"
/* quick and dirty ASCII edition */

View File

@ -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();