Jump to: navigation, search

This implementation requires pointer comparison to be meaningful always - is there another way to implement this? [unsigned comment by User:Random832, 00:32, 21 March 2006 GMT]

Not portably. I missed that on a first reading; I've changed it to a __np_anyptrlt() macro/function documented in Non-Portable Standard Implementation Components. --Netocrat 03:20, 21 March 2006 (UTC)

The C99 Approach

Random832: Whether it's undefined behaviour or not, the risk of running out of memory is too great for this to be appropriate as a general approach - let's rename the section from "A C99 Approach" to "Sub-optimal approaches" and add that section + description to the template article - reasons for "sub-optimal" tagging could include relies on C99 features but function is defined by C90, too liberal with memory requirements, algorithm known to be easily beatable, etc (also, a typo: memcpy's declared in string.h not stdlib.h). --Netocrat 21:16, 23 March 2006 (UTC)

Yeah. The plus side, though, is that it doesn't rely on any __np components. I figured it was worth mentioning for that reason. --Random832 21:27, 23 March 2006 (UTC)

Personal tools