I tried including string.h and stdlib.h, but still get undefined reference compile errors.
This leads me to conclude that it is in a different library that I didn't include. Where is it?
I am using gcc compiler - the code is written in Windows, but is going to be compiled and run on a unix server.

There's an implementation in slibc.