I have a header file h1.h containing the following variable declaration:
h1.h
struct namespaces
{
char *soap_env;
char *soap_enc;
char *xsd;
char *xsi;
} ns;
I included the header file h1.h in 2 C files c1.c and c2.c.
c1.c
#include "h1.h"
c2.c
#include "h1.h"
I expect to get an error in the build, but I did not. There is no error and no warnings in the In the build.
Is it normal?
Does a such issue cause an undefined behaviour when the program is running?