On Wed, 17 Jun 1998, CyberPeasant wrote: > James wrote: > > listy = (line *) malloc (sizeof (line)); > > No need to cast the return of malloc. Seems like casting the malloc return type is good style to me. It has helped me catch errors to stupid mistakes like: char *pointer; pointer=(int *)malloc(sizeof(int)); This is also required in C++ and makes moving old code to C++ eaiser IMHO. Just my two cents on the issued. ....... [EMAIL PROTECTED] `:::' Kevin Sivits ....... ...... ::: * `::. ::' one world ::: .:: .:.::. .:: .:: `::. :' one people ::: :: :: :: :: :: :::. one goverment ::: .::. .:: ::. `::::. .:' ::. one OS ..:::.....................::' .::::.
- Re: For "speed freaks&qu... MCENANEY WILLIAM J
- Re: Pointers (again) Andrea Arcangeli
- Re: Pointers (again) James
- Re: Pointers (again) Glynn Clements
- Re: Pointers (again) James
- Re: Pointers (again) holotko
- Re: Pointers (again) Andrea Arcangeli
- Re: Pointers (again) holotko
- Re: Pointers (again) MCENANEY WILLIAM J
- Re: Pointers (again) Glynn Clements
- Re: Pointers (again) Kevin Sivits
- Re: Pointers (again) holotko
- Re: Pointers (again) James
- Re: Pointers (again) [offtopic] Andrea Arcangeli
- Re: Pointers (again) [offtopic] James
- [offtopic] Emacs vs vi Glynn Clements
- Re: [offtopic] Emacs vs vi Moshe Zadka
- Re: [offtopic] Emacs vs vi Herry Budiutama
- Re: [offtopic] Emacs vs vi Kevin Sivits
- Re: [offtopic] Emacs vs vi MCENANEY WILLIAM J
- Re: [offtopic] Emacs vs vi Glynn Clements