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

Re: CopyCStringToPascal


  • Subject: Re: CopyCStringToPascal
  • From: Eric Albert <email@hidden>
  • Date: Thu, 16 Jun 2005 03:03:02 -0700

On Jun 16, 2005, at 1:42 AM, Ben Weiss wrote:

I'm porting some old code that uses 'c2pstrcpy', and XCode informs me that the function is deprecated. Apple's website confirms this, and states that I should use CopyCStringToPascal instead.

However, the new 10.4 universal headers indicate that CopyCStringToPascal is also deprecated, but I can't find a newer equivalent to convert it to. (It would be great if the compiler warning could tell me this.) Anybody know?

I think the theory there is that Pascal strings themselves are not encouraged any more. You should switch from APIs that use Pascal strings to more modern APIs that are Unicode-friendly.


Hope this helps,
Eric

_______________________________________________
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: CopyCStringToPascal
      • From: Ben Weiss <email@hidden>
    • Re: CopyCStringToPascal
      • From: Bryan Pietrzak <email@hidden>
    • Re: CopyCStringToPascal
      • From: Dan Wood - Discussion Lists <email@hidden>
References: 
 >CopyCStringToPascal (From: Ben Weiss <email@hidden>)

  • Prev by Date: Re: GCC 4.0 GetKeys() and BigEndianLong for Intel
  • Next by Date: Re: GCC 4.0 GetKeys() and BigEndianLong for Intel
  • Previous by thread: CopyCStringToPascal
  • Next by thread: Re: CopyCStringToPascal
  • Index(es):
    • Date
    • Thread