Re: glib outstanding stuff



Havoc Pennington <hp redhat com> writes:
> "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.

I think a GString is a good idea.

- Hari
-- 
Raja R Harinath ------------------------------ harinath cs umn edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash




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