Re: C Strings
Re: C Strings
- Subject: Re: C Strings
- From: Stig Brautaset <email@hidden>
- Date: Tue, 21 Mar 2006 11:42:42 +0000
Aren Villanueva wrote:
printf("%c %d\n", searchTerm[0], searchTerm[0]);
where searchTerm is defined in the function arguments as
char *searchTerm[]
This is a *pointer to* an array of characters; is this really what you
mean? Leave off the [], i.e. make that argument be "char *searchTerm"
and your printf should work.
Stig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >re: C Strings (From: Aren Villanueva <email@hidden>) |