This commit adds an implementation of strndup() function which allocates memory from the supplied isc_mem_t memory context.