Added projects tab and local projects list processing. Fxed some memory errors

This commit is contained in:
Dm1tr1y147
2020-07-28 07:29:20 +05:00
parent 21f5a392fa
commit 440000c438
14 changed files with 251 additions and 15 deletions

View File

@ -9,7 +9,7 @@
#include "../../include/file_op/file.h"
#include "../../include/utils_op/utils.h"
#include "../../include/articles_op/process_md.h"
#include "../../include/articles_p/process_md.h"
#define LINE_LENGTH 512

View File

@ -0,0 +1,22 @@
#ifndef _PROJECTS_H
#define _PROJECTS_H
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#define LINE_LENGTH 512
typedef struct {
char *title;
char *description;
char *lang;
char *license;
char *url;
} project_t;
ssize_t read_list(project_t **list);
char *gen_project_html();
void free_proj_list(project_t **list, int len);
#endif