Re: char* pname = "Harry"
- From: peter.koch.larsen@xxxxxxxxx
- Date: 18 Apr 2006 07:42:13 -0700
John Bode wrote:
erktek@xxxxxxxxx wrote:[snip]
Statement given below;
char * p ;
p = (char*) malloc(20);
Lose the cast, unless you're working with a *very* old implementation
(pre-C89).
Or the code should be usable with both C and C++.
/Peter
.
- Follow-Ups:
- Re: char* pname = "Harry"
- From: John Bode
- Re: char* pname = "Harry"
- From: Martin Ambuhl
- Re: char* pname = "Harry"
- From: Flash Gordon
- Re: char* pname = "Harry"
- References:
- char* pname = "Harry"
- From: erktek
- Re: char* pname = "Harry"
- From: John Bode
- char* pname = "Harry"
- Prev by Date: removing data in files
- Next by Date: Re: removing data in files
- Previous by thread: Re: char* pname = "Harry"
- Next by thread: Re: char* pname = "Harry"
- Index(es):