Last commit with db. Switching to makdown articles representation
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
#ifndef _ARR_H
|
||||
#define _ARR_H
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void insert_to_arr(char ***arr, size_t length, char *value);
|
||||
void free_arr(char **arr, int length);
|
||||
void free_arr(char **arr, int length);
|
||||
int check_if_contains(char **arr, size_t length, char *str);
|
||||
|
||||
#endif
|
@ -0,0 +1,20 @@
|
||||
#ifndef _LLIST_H
|
||||
#define _LLIST_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define NUMBER 5
|
||||
|
||||
typedef struct llist_s
|
||||
{
|
||||
char *value;
|
||||
struct llist_s *next;
|
||||
} llist_t;
|
||||
|
||||
llist_t *find_item(llist_t *list, int n);
|
||||
void fill_with_arr(llist_t **list, char **arr, size_t n);
|
||||
void print_llist(llist_t *list);
|
||||
llist_t *add_to_list(llist_t **head, int pos, char *value);
|
||||
|
||||
#endif
|
@ -1,9 +1,14 @@
|
||||
#ifndef _UTILS_H
|
||||
#define _UTILS_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void err_msg(char *msg);
|
||||
char *add_to_front(char **str1, char *str2);
|
||||
char *concat_to_front(char **str1, char *str2);
|
||||
char *get_status_message(int status_code);
|
||||
char *to_lower(char *str);
|
||||
char *to_lower(char *str);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user