[hackers] Re: [dmenu] Use libsl/libdraw code and add Xft support

2015-06-12 Thread Hiltjo Posthuma
On Mon, Jun 8, 2015 at 11:48 PM, Hiltjo Posthuma hil...@codemadness.org wrote: On Mon, Jun 8, 2015 at 11:05 PM, Hiltjo Posthuma hil...@codemadness.org wrote: ... snip ... Some more thoughts: in drw.c these functions don't check if drw == NULL before use: drw_load_fonts, drw_font_xcreate.

[hackers] FILE vs fd

2015-06-12 Thread Aditya Goturu
Is there any particular reason why I would use unix's fd and open() instead of ANSI's FILE struct and fopen()? -- Aditya Goturu The most dangerous phrase in the language is, We’ve always done it this way - Grace Hopper

Re: [hackers] FILE vs fd

2015-06-12 Thread Martti Kühne
On Sat, Jun 13, 2015 at 6:36 AM, Aditya Goturu aditya3...@gmail.com wrote: Is there any particular reason why I would use unix's fd and open() instead of ANSI's FILE struct and fopen()? FILE is generally easier to use and provides application-centric interfaces such as the setbuf() family of