The use of mktemp is not recommended for new applications. See the tmpnam and mkstemp functions for the preferable alternatives.