The strndup function has variants named _strndup32 and _strndup64 for use with 32-bit and 64-bit pointer sizes, respectively.