#include<stdio.h>
#include<stdlib.h>
#include <string.h>
typedef struct info{
int vreme_pojavljivanja;
int vreme_uklanjanja;
char *tekst;
}Info;
typedef struct clan{
Clan *prethodni;
Clan *sledeci;
Info *prevod;
}Clan;
Clan *novi_clan(char *tekst, int vreme_poc, int vreme_kraj, int max_text);
this is my Strukture.h file
and this is my novi_clan.c file
#include "strukture.h"
Clan *novi_clan(char *tekst,int vreme_poc,int vreme_kraj,int max_text){
Clan *novi = malloc(sizeof(Clan));
novi->prethodni = NULL;
novi->sledeci = NULL;
novi->prevod = malloc(sizeof(Info));
novi->prevod->vreme_pojavljivanja = vreme_poc;
novi->prevod->vreme_uklanjanja = vreme_kraj;
novi->prevod->tekst = calloc(max_text, sizeof(char));
strcpy(novi->prevod->tekst, tekst);
return novi;
}
It gives me errors like Clan is not defined .. And if someone sees an error please reply to it