I am interested to know whether this would be a possibility of working without any issues?
#ifndef _HEADERS_ALL_
#define _HEADERS_ALL_
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Directory Queue headers */
void init_dir_queue (void);
void enqueueDir (char *name);
int dequeueDir (char *name);
void show_dir_queue (void);
/* we will only use one error function to call for both Queues */
void error (char *msg);
/* File Queue headers */
void init_file_queue(void);
void enqueueFile(char* path);
int dequeueFile(char* path);
void show_file_queue(void);
#endif // !1
And just include in main.c
:
#include "headers.h"
Declarations are in dirQueue.c
and fileQueue.c
.
Will compile using: gcc main.c fileQueue.c dirQueue.c -o main