Check out this link:
The code shown at the SCO Forum was published in Kernighan & Ritchie's The
C Programming Language, Prentice Hall 1978!
From the web page: Another version of the code is copyrighted by the
University of California as part of the BSD Unix system that they produced
for the U.S. Army and released as Open Source. That code is also under
the BSD license
Also from the web page: "We've found the malloc() function this slide
refers to. It is included in code copyrighed by ATT and twice released
under the BSD license: once by Unix ...