Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror

Comment Re: This thing is crazy (Score 1) 53

Just ask it to find and fix the bug! I suspect bugs like this will become less common as the model is tweaked or additional compute time is given to "reflect" on the response and check for logical consistency.

Question: Would the write to substring[6] cause an error?

Answer: Yes, the write to substring[6] in the code you have provided would cause an error, because the substring array is only defined to have a length of 6, so attempting to write to the seventh element (substring[6]) would overrun the bounds of the array and result in undefined behavior.

To avoid this issue, the code could be modified to ensure that the substring array has a length of 7, so that the null-terminator character can be safely written to substring[6] without overrunning the bounds of the array. This could be done by changing the definition of the substring array to the following:

char substring[7];

Comment Re:GNAAAR!!!! (Score 1) 94

Wow - thanks for pointing this out. After a few minutes I can do both techniques. Basically, one is looking beyond the image and the other is looking in front of the image. Looking beyond however seems MUCH easier as your eyes don't cross nearly as much, though.
Handhelds

Submission + - Inside the iPhone: 3G, ARM, OS X, 3rd Partyware

DECS writes: After heading off the top ten myths of the iPhone, Daniel Eran of RoughlyDrafted has written a series of articles looking "Inside the iPhone," exploring why Apple didn't target faster 3G networks in EDGE, EVDO, HSUPA, 3G, and WiFi, a substantiated look at how the iPhone is indeed running OS X (contrary to reports that it isn't), what it means to users and developers, and how ARM is involved, in Mac OS X, ARM, and iPod OS X, and why the supposedly "closed system" Apple describes for the iPhone won't preclude third party development in Third Party Software.

Slashdot Top Deals

"One Architecture, One OS" also translates as "One Egg, One Basket".

Working...