What are the benefits and goals of having a license commment in the header of the source file?
Why are you adding a license header to your source code?
What are the benefits and goals of having a license commment in the header of the source file?
Why are you adding a license header to your source code?
So that nobody can make a legitimate claim that they did not know that the source code is controlled by a license.
If you ever distribute source code without an attached license, someone can make the claim that they were under the belief that the source code was in the public domain.
It's not going to give you 100% legal protection, but does show that you took reasonable steps to protect your intellectual assets.