• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Another newbie EXC_BAD_ACCESS in C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Another newbie EXC_BAD_ACCESS in C
      • From: j o a r <email@hidden>
References: 
 >Another newbie EXC_BAD_ACCESS in C (From: "W. Thomas Leroux" <email@hidden>)
 >Re: Another newbie EXC_BAD_ACCESS in C (From: John Stiles <email@hidden>)
 >Re: Another newbie EXC_BAD_ACCESS in C (From: Gen Kiyooka <email@hidden>)

  • Prev by Date: Re: Sync Services: role of client type
  • Next by Date: Re: Obj-C from JavaScript, Google Map event listeners in a WebView.
  • Previous by thread: Re: Another newbie EXC_BAD_ACCESS in C
  • Next by thread: Re: Another newbie EXC_BAD_ACCESS in C
  • Index(es):
    • Date
    • Thread