Ben
Ben

Reputation: 1701

What does "@(#)<filename>" signify in comments?

I'm looking at the source code for the venerable Unix game Rogue, and I've noticed that the comments at the head of each file contain a line in this format:

@(#)init.c   4.31 (Berkeley) 02/05/99

I've never seen the "@(#)" notation before, and I haven't been able to find an explanation of it anywhere. Could anyone tell me what this signifies?

Upvotes: 1

Views: 170

Answers (2)

synthetel
synthetel

Reputation: 63

You might be interested in the Source Code Control System: https://en.wikipedia.org/wiki/Source_Code_Control_System

Upvotes: 1

Ben
Ben

Reputation: 1701

Naturally, I figured this out immediately after posting my question when I stumbled upon a reference to an old version control system called Source Code Control System. The mysterious comment is an "sccsid" string. From Wikipedia:

After compilation, this string can be found in binary and object files by looking for the pattern "@(#)" and can be used determine which source code files were used during compilation.

Upvotes: 1

Related Questions