I recently realized the existence of void pointers. These are quite useful if the primitive type for a data storage class is not known. Though, I have a question as to whether I am using them correctly.
My storage class will allocate memory and keep track of the byte size of the individual pieces. The user then set and extract bytes via void * pointers.
The storage class then copies bytes to and from the storage memory as needed. Basically my own crude implementation of NSMutableArray/NSMutableData.
The user gets back a void * pointer and then casts this into whatever is needed. Yes, probably too much responsibility is given to the user.
Anyway, I am concerned about memory leaks. To return a value, I memcpy() the bytes into a newly created memory malloc(). But there is no corresponding free().
The user has to free the memory. But calling free after casting and dereferencing causes a crash. Does memory have to be freed in this case? See last for loop.
Thanks for reading, replying and hopefully a lesson in pointers.
int main (int argc, const char * argv[]) {
Jewel tone eyeshadowaethelbert
Mar 18, 08:46 PM
I think only a few east coast stores ever had them, and you were required to activate in store to prevent re-selling.
Anyways, that doesn't apply at all to anyone international. eyemac, no don't worry about it :) I'd prefer to keep offers to PM just for privates sake but I will comment that I'm looking for a little more because I still lose a few dollars there, and I really don't want to lose any money. I'm seeing them go for $450-$550 on eBay so that would be optimal but I don't expect that here, of course.
Please bid if you are interested :)
They can now be purchased online as well in all parts of the country for $249 through AT&T (there's no contract when buying the phone, either), there's a thread about it in the iPhone news forum. So I think that price would be very optimistic, as anyone on here could get one for $249 and have it unlocked in twenty minutes.
Also, if it's a refurb, why does it come in the packaging for new phones? IIRC, refurb iPhones come in brown boxes...
Your best bet is ebay, especially if you want prices like that.
28th Production week, 2007. 200 MHZ CPU speed, A1203, 8GB. To know more, we need more information. Why do you want to know?
What more information would you like?
Specifically I'd like to know more about the production date. Was it one of the first iPhone 2G's sold? Or one of the last? Obviously it was made in 2007 so at least it was within the first year. What is the earlier known "production week" for an iPhone 2G?
I went by the store today to try and find out a rough number of how many non-reserved phones they would have. I couldn't get a number of course, the lady did say that the Reston Town Center security would run people off that were lined up before 5am. Not sure if that will really happen or just what they are told to tell customers.....the official answer.
rockyroad55
May 6, 09:38 AM
Nice ID there OP .. IwantItToo :p
Do you game a lot? If you don�t, you better get off with base 21.5� or base 27� for screen estate
Truly, gaming is an expensive hobby. Be thankful if you hate video games, since you won�t care about how many FPS you can get from your screen
My score? No doubt 11 .. oops i mean 10
I agree with you too. Gaming is pretty good if you run bootcamp. But, I would still suggest base 21.5" or go all out with the maxed 27"! :)
You should let people know where you are. In case someone is looking for a spot with a short line
Mr_Brightside_@
May 4, 12:33 PM
Beaten by four minutes :P (http://forums.macrumors.com/showthread.php?t=1147600)
0 comments:
Post a Comment