• 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
c2pstr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c2pstr


  • Subject: c2pstr
  • From: Charlie Dickman <email@hidden>
  • Date: Thu, 10 Apr 2008 00:14:07 -0400

Now that c2pstr is deprecated how do you convert a c string or a Cocoa string to a pascal string for use with debugStr?

I've been using

DebugStr(c2pstr ((char *) [[NSString stringWithFormat: @"%s @ %d", __func__, __LINE__]
    cStringUsingEncoding: NSASCIIStringEncoding]))

Charlie Dickman
email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: c2pstr
      • From: j o a r <email@hidden>
    • Re: c2pstr
      • From: Philip Aker <email@hidden>
  • Prev by Date: Re: Xcode Snapshots
  • Next by Date: Re: c2pstr
  • Previous by thread: Re: Xcode Snapshots
  • Next by thread: Re: c2pstr
  • Index(es):
    • Date
    • Thread