Re: void * vs char *
- From: richard@xxxxxxxxxxxxxxx (Richard Tobin)
- Date: 19 Mar 2007 00:34:13 GMT
In article <1174262593.153711.146610@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
<Francine.Neary@xxxxxxxxxxxxxx> wrote:
So if a char * really is just a more functional void *, why would
anyone ever use a void * in their code, instead of a char *?
char * means that it points to characters or bytes. void * doesn't;
it means that it points to something of unspecified type. Even if
there was no functional difference between them, it would be
worthwhile to be able to express your intent.
-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
.
- References:
- void * vs char *
- From: Francine . Neary
- void * vs char *
- Prev by Date: Re: Unions Redux
- Next by Date: Re: From vasanth
- Previous by thread: Re: void * vs char *
- Next by thread: executing shell commands from c?
- Index(es):
Relevant Pages
|