• 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
# flag used with printf warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

# flag used with printf warning


  • Subject: # flag used with printf warning
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 26 Apr 2004 16:25:37 -0500

I have several sprintf statments in the form:

sprintf( someNullTerminatedString, "some message %#s", someLengthPrefixedString );

I get the following warning when compiling (this is a Carbon app):

	'#' flag used with '%s' printf format

Is this just a warning that the code is less portable? Or, is it the case where this is deprecated and should be avoided?

Thanks,
___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Founder & President
Instant Interactive(tm)   http://www.instantinteractive.com
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: # flag used with printf warning
      • From: Jens Miltner <email@hidden>
    • Re: # flag used with printf warning
      • From: Frank Midgley <email@hidden>
  • Prev by Date: dependent target "Copy files" build phase fails
  • Next by Date: Erratic autocomplete behavior
  • Previous by thread: Followup (Re: dependent target "Copy files" build phase fails)
  • Next by thread: Re: # flag used with printf warning
  • Index(es):
    • Date
    • Thread