home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / stdio / mktemp.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  770 b   |  33 lines

  1. @node mktemp, file system
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. char *mktemp(char *template);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. @var{template} is a file specification that ends with six trailing
  13. @code{X} characters.  This function replaces the @code{XXXXXX} with a
  14. set of characters such that the resulting file name names a nonexisting
  15. file.
  16.  
  17. Note that since MS-DOS is limited to eight characters for the file name,
  18. and since none of the @code{X}'s get replaced by a dot, you can only
  19. have two additional characters before the @code{X}'s. 
  20.  
  21. @subheading Return Value
  22.  
  23. The resulting filename.
  24.  
  25. @subheading Example
  26.  
  27. @example
  28. char template[] = "/tmp/ccXXXXXX";
  29. mktemp(template);
  30. FILE *q = fopen(template, "w");
  31. @end example
  32.  
  33.