Generates the name to a temporary file.

Defined in <seqan/basic.h>
Signature TCharType SEQAN_TEMP_FILENAME();

Return Values

TCharType char const *, string with the path to a temporary file.

Detailed Description


The pointed to string is stored in a buffer and is overwritten by the next call to this macro. Copy it out if you need it.


const char *p = SEQAN_TEMP_FILENAME();
buffer char tempFilename[1000];
strcpy(tempFilename, p);
FILE *f = fopen(tempFilename, "w");
fprintf(f, "Test Data");

Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

See Also