On Mon, 28 Nov 2005 09:08:22 -0600, aaron-XW8b5UTxoeLYtjvyW6yDsg wrote:
> Do AUTHORS, TRANSLATORS, and NEWS get installed with the binary packages
> on linux? If not, where should they go and how do I get them there?
Some packages do, usually to /usr/share/doc/$packagename, but the actual
location varies between distributions. Autopackages don't do this by
default as it's assumed end users never actually read them (which I think
it's a fair assumption), and they tend to be useless anyway (eg empty NEWS
files, enormous ChangeLogs).
If Inkscape is going to show them in the GUI though - which I agree would
be excellent - it's easy to install them to /usr/share/inkscape
> Are there any good examples of reading a file into a string in the code?
> I've searched a little bit, but every thing looks more complicated than
> I would expect. How _should_ it be done?
You can use stat and mmap. Stat to find out the size of the file, mmap to
load it, then just stick a \0 on the end and there you have your string.