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

new uint8_t


  • Subject: new uint8_t
  • From: Keith Alperin <email@hidden>
  • Date: Wed, 13 Dec 2006 06:54:20 -0600

Greetings cocoa-devs,

Like the original poster in the recent "init char buffer to null" thread, I know some cocoa, but am not very familiar with straight up C. I'm working on some license verification code using examples provided in these excellent articles: http://tinyurl.com/yeus87 and http://tinyurl.com/y7rp5n . Unfortunately, the compiler gives me a "'new' undeclared (first use in this function)" on the following:
uint8_t* destination;
destination = new uint8_t[returnedRSASize];


I'm trying to allocate this buffer in a C function in one of my cocoa classes. I suspect that the "new unint8_t" semantic is not allowed in an objective-c file but i haven't been able to find any information about it. Is there some other way to create the buffer in .m file?

Thanks so much, and I apologize for the noob question.

Keith

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: new uint8_t
      • From: Timothy Klein <email@hidden>
    • Re: new uint8_t
      • From: James Bucanek <email@hidden>
  • Prev by Date: Controlling menu extras
  • Next by Date: Re: Converting wav to mp3
  • Previous by thread: Controlling menu extras
  • Next by thread: Re: new uint8_t
  • Index(es):
    • Date
    • Thread