Creating temporary directories with suffixes

view story

http://stackoverflow.com – I'd like to create a temporary of the form /tmp/prefix.XXXXXX.suffix, however the only function I know of to create temporary directories is mkdtemp which requires the XXXXXX characters to appear at the end of the template. Is there another way to create a temporary directory that allows this? (HowTos)