These comments are automatically modified by various source control systems, such as author, date, history, etc.
See here for some common ones for RCS, which is the first source control system I have ever seen to implement this kind of thing (which does not mean that it was the first, just RCS was the first that I ever used , and had such an opportunity).
One specific trick we used was to put a line:
static char *fileId = "$Id: $";
to the source file (and header files, although the names must be unique), so when it was created, it will automatically receive the file identifier in the executable file itself.
Then we could use something like strings to find out which source files were used to create the executable. Ideal for debugging problems in the field.
paxdiablo
source share