• 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: NSString format specifiers (was: Is Concatenation that complex?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString format specifiers (was: Is Concatenation that complex?)


  • Subject: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 28 Apr 2004 05:45:06 +0200

On 28. Apr 2004, at 4:00, Gwynne wrote:

CFString/NSString also supports reordering of arguments [...]
That's supported by stdlib as well. You can do some pretty darn neat things with stuff like %*.*f [...]

I think you mistook my stated "argument re-ordering" for "length-adjusted output" with the length optionally given as an argument (in lack of more formal terminology ;) ).

E.g. is there any way you can provide the missing format string in the following example and have it print "hello world"?

printf(<missing>, "world", "hello");
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSString format specifiers (was: Is Concatenation that complex?)
      • From: Gwynne <email@hidden>
References: 
 >Is Concatenation that complex? (From: Adam <email@hidden>)
 >Re: Is Concatenation that complex? (From: Marco Scheurer <email@hidden>)
 >Re: Is Concatenation that complex? (From: Finlay Dobbie <email@hidden>)
 >Re: Is Concatenation that complex? (From: Bob Ippolito <email@hidden>)
 >Re: Is Concatenation that complex? (From: Gwynne <email@hidden>)
 >NSString format specifiers (was: Is Concatenation that complex?) (From: Allan Odgaard <email@hidden>)
 >Re: NSString format specifiers (was: Is Concatenation that complex?) (From: Gwynne <email@hidden>)

  • Prev by Date: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Next by Date: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Previous by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Next by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Index(es):
    • Date
    • Thread