commit: dec8cca887ee193e47cf845527c8223fdc11b827
parent 852be7b8dd7c4132f68116d1ef042bd7fab9687d
Author: neauoire <aliceffekt@gmail.com>
Date: Fri, 20 Dec 2019 15:40:31 -0500
Started site builder
Diffstat:
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/src/ingredient.c b/src/ingredient.c
@@ -40,5 +40,20 @@ void print_ingredient(Ingredient *ingredient){
void build_ingredient_page(Ingredient *ingredient){
char ingredient_path[1024];
to_lowercase(ingredient->name, ingredient_path);
- printf("%s -> %s\n", ingredient->name, ingredient_path);
+
+
+
+ char ingredient_filepath[1024];
+
+ sprintf(ingredient_filepath, "../site/%s.txt", ingredient_path);
+ printf("%s -> %s\n", ingredient->name, ingredient_filepath);
+
+
+ // FILE *myfile = fopen("../site/somefile.txt", "w");
+
+ // fprintf(myfile, "hello!\n");
+
+ // fclose(myfile);
+
+
}
\ No newline at end of file