Use builtin memstream on OS X