Re: glib outstanding stuff



"Alexis S. L. Carvalho" <alexis cecm usp br> writes: 
> so, I guess this won't work correctly with binary files (because of
> embedded NULs) ?
> 

Yes that's correct. Maybe call it g_text_file_get_contents()?

Or we could return the GString, or a guchar* and a length, perhaps.

I don't think it really has to work on binary files (it's just a
convenience function), so it's a question of what would be useful,
and, well, convenient.

Havoc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]