Re: Reversing a String
Re: Reversing a String
- Subject: Re: Reversing a String
- From: "Adam R. Maxwell" <email@hidden>
- Date: Tue, 30 Dec 2008 22:19:16 -0800
On Dec 31, 2008, at 4:42 PM, Graham Cox wrote:
On 31 Dec 2008, at 4:35 pm, Graham Cox wrote:
I don't think this is legal
Hmm, seems C99 allows this. I didn't know that - my bad.
Personally, I avoid variable length arrays out of fear that the
allocation might fail. On 10.3 or 10.4 I ran into a situation where
writing to memory from alloca was smashing the stack; unfortunately it
didn't return NULL when it wasn't able to allocate sufficient memory.
My impression was that the mechanism is similar for these, but I could
be totally wrong...
--
Adam
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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