Hello, I'm working on a program that should manage data structures like queues and stacks.
For exercise, I made structs to model those structures, using two different .c files, each with the struct and the methods.
Now the problem is: if I include my files in a main program, there's name ambiguity. Both structures have "empty" and "null" methods.
Is there a way to disambiguate the methods without changing the name? Of course first solution is change empty(..) to emptyQueue(...) but is tricky and annoying to use.
Maybe namespaces? I know about their existence but I dont know how to use them.
Thanks for help!