Re: Another newbie EXC_BAD_ACCESS in C
Re: Another newbie EXC_BAD_ACCESS in C
- Subject: Re: Another newbie EXC_BAD_ACCESS in C
- From: "Sean McBride" <email@hidden>
- Date: Mon, 16 Jan 2006 12:21:07 -0500
- Organization: Rogue Research
On 2006-01-13 20:41, Gen Kiyooka said:
>>> fprintf(fp, "%c", dna1);
>
>
>%c is the 'char specifier'
>
>I believe you are looking for:
>
>%s
>
>Which is the string specifier.
And xcode can give you a warning about this: 'typecheck calls to printf/
scanf': "Check calls to printf and scanf , etc, to make sure that the
arguments supplied have types appropriate to the format string
specified, and that the conversions specified in the format string make
sense. [GCC_WARN_TYPECHECK_CALLS_TO_PRINTF, -Wformat]"
Turn on all those warnings. :)
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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