Hi, I have a problem with c files.
I have broken my code to 2 files main.c and unp.h
unp.h
typedef void (*Ptr_To_Function)(void);
struct Menu_Record
{
unsigned int option_number;
const char * text;
Ptr_To_Function process_function;
};
struct Menu_Record* select(struct Menu_Record*,int);
struct Menu_Record startup[] =
{
{1, "Choice1", NULL},
{2, "Choice2",NULL},
{0, "Exit", NULL}
};
main.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "unp.h"
int main()
{
return 0;
}
struct Menu_Record* select(struct Menu_Record* menu, int num_options)
{
}
But when I compile I take errors
In file included from main.c:6:
unp.h:10: error: conflicting types for Α select Α
/usr/include/sys/select.h:109: note: previous declaration of Α select Α was he
re
client.c:57: error: conflicting types for Α select Α
/usr/include/sys/select.h:109: note: previous declaration of Α select Α was he
re