PRB: mktemp() Creates a Maximum of 27 Unique Filenames

ID Number: Q50351

5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

It is not clear in the Microsoft C and QuickC online and printed

documentation for the mktemp() function exactly how many filenames

mktemp() can create. These references state the following:

When creating new names, mktemp uses, in order, "0" and the

lowercase letters "a" to "z".

This information is correct; however, the documentation fails to

mention that these are the only filenames that are created. Any

further calls to mktemp() after these characters have been used will

fail (that is, once "z" has been placed in the template). Therefore,

the limit on the number of unique filenames that can be created by

mktemp() is 27.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00 s_quickc