Hey, can somebody please affirm my knowledge of translation units in C? I read they are a source file after being preprocessed, so if I have three files, main.c, stuff.c and stuff.h: stuff.h contains some function declarations, stuff.c #includes stuff.h and defines the functions and main.c #includes stuff.h and calls them, are the translation units in this program: the contents of stuff.h, the contents of stuff.c with stuff.h and the contents of main.c with stuff.h?
As you said, they are source files after being preprocessed.
You have two TUs: one that is main.c after #including stuff.h, and one that is stuff.c after #including stuff.h.