Content
A sad story about bec-temporarybuffer namathe C STIL library was designed by the first author of this book, he pined that it would be helpful to have a function get temporary buffer Strakes a size n and returns the largest available temporary buffer up to sen that fits into physical memory. As a placeholder (since the correct resion needs to have knowledge that only the operating system has), he wrote a simplistic and impractical implementation, which repeatedly calls alloc asking for initially huge and gradually smaller chunks of memory until it returns a valid pointer. He put in a prominent comment in the code sing something like, "This is a bogus implementation, replace it!" To his surprise, he discovered years later that all the major vendors that provide SI implementations are still using this terrible implementation -but they removed his comment.