[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: licence text as string?
From: |
Bruno Haible |
Subject: |
Re: licence text as string? |
Date: |
Fri, 28 Sep 2007 00:59:09 +0200 |
User-agent: |
KMail/1.5.4 |
Hi,
John Darrington wrote:
> Would it be possible to add a feature to the gpl-[23].0 modules which
> provides the text of the GPL as a const char * ?
>
> This would be useful for user interfaces which need to display the
> licence text
Why not reading the file at runtime? It's as simple as this:
Makefile.am:
pkgdata_DATA = COPYING
*.c:
license = read_file (PKGDATADIR "/COPYING", &length);
if (license == NULL)
license = "GPL";
read_file() is a function provided by gnulib, module 'read-file'.
Bruno