new uint8_t
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