Best practice for displaying license?



Hi, folks,

I am thinking about whether we can use a better way to display license
for a BSD licensed software. Currently I have copy and pasted the
copyright as a static string constant, but that means that we have to
duplicate the text, like this:

static const char license[] = " * Copyright (c) [year] [your name]\n
* All rights reserved.\n
*\n
* Redistribution and use in source and binary forms, with or without\n
* modification, are permitted provided that the following conditions\n
* are met:\n
[...]
* SUCH DAMAGE.\n
"

Is there some better way not to include so much duplicated text?

Cheers,
--
Xin LI <delphij@xxxxxxxxxxx> http://www.delphij.net/
FreeBSD - The Power to Serve!

Attachment: signature.asc
Description: OpenPGP digital signature