From e8b3f24226dd1294cbf6d6e3a0ff2eb8a5403bd1 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 18 Jul 2019 19:18:36 -0400 Subject: new function add_to_index() --- Makefile | 2 +- blog.h | 2 ++ index.c | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 index.c diff --git a/Makefile b/Makefile index c9fcefa..ed2bc04 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .POSIX: CFLAGS=-static -OBJECTS=blog.o post.o auth.o +OBJECTS=blog.o post.o auth.o index.o all: blog diff --git a/blog.h b/blog.h index 6e55315..70783a3 100644 --- a/blog.h +++ b/blog.h @@ -13,4 +13,6 @@ int handle_post(void); int show_entry(const char *path); +void add_to_index(const char *path, const char *title); + #endif diff --git a/index.c b/index.c new file mode 100644 index 0000000..87aeaa3 --- /dev/null +++ b/index.c @@ -0,0 +1,7 @@ +#define _XOPEN_SOURCE 700 + +#include "blog.h" + +void add_to_index(const char *path, const char *title) +{ +} -- cgit v1.2.1