Re: [hackers] FILE vs fd

2015-06-12 Thread Aditya Goturu
I just found some programmers use one over another in every scenario, and I could not see any reason for this bias. I just wanted to know if some advantage existed. Sorry for the bad question. -- Aditya Goturu Never underestimate the bandwidth of a station wagon full of tapes hurtling down the

Re: [hackers] FILE vs fd

2015-06-12 Thread Dmitrij D. Czarkoff
FRIGN said: >> Is there any particular reason why I would use unix's fd and open() >> instead of ANSI's FILE struct and fopen()? > > Yes. This is the best answer I have ever seen on this list. -- Dmitrij D. Czarkoff

Re: [hackers] FILE vs fd

2015-06-12 Thread FRIGN
On Sat, 13 Jun 2015 10:06:04 +0530 Aditya Goturu wrote: > Is there any particular reason why I would use unix's fd and open() > instead of ANSI's FILE struct and fopen()? Yes. -- FRIGN

Re: [hackers] FILE vs fd

2015-06-12 Thread Martti Kühne
> That said, I find the question silly and would like to know whether > you learned any program outside of youtube, like, with documentation ...any programming outside... Seriously, RTFM. It's not like this is a place for social studies about programming, because all the things people might tell y

Re: [hackers] FILE vs fd

2015-06-12 Thread Martti Kühne
On Sat, Jun 13, 2015 at 6:36 AM, Aditya Goturu 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 functions. The FILE

[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

[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 wrote: > On Mon, Jun 8, 2015 at 11:05 PM, Hiltjo Posthuma > wrote: >> ... snip ... >> > Some more thoughts: in drw.c these functions don't check if drw == NULL before use: drw_load_fonts, drw_font_xcreate. We should probably not check these in d