2.11BSD/man/cat3/tmpnam.0

Compare this file to the similar file:
Show the results in this format:




COMPATS5(3)	    UNIX Programmer's Manual	      COMPATS5(3)



NAME
     memccpy, memchr, memcmp, memcpy, memset, strchr, strrchr,
     tempnam, tmpfile, tmpnam - System V compatibility routines

SYNOPSIS
     char *memccpy(from, to, ch, count)
     char *from, *to;
     int ch, count;

     char *memchr(str, ch, count)
     char *str;
     int ch, count;

     int memcmp(str1, str2, count)
     char *str1, *str2;
     int count;

     char *memcpy(from, to, count)
     char *from, to;
     int count;

     char *memset(str, ch, count)
     char *str;
     int ch, count;

     char *strchr(str, ch);
     char *str;
     int ch;

     char *tempnam(tmpdir, prefix)
     char *tmpdir, *prefix;

     char *tmpfile()

     char *tmpnam(str)
     char *str;

COMMENT
     The #_d_e_f_i_n_e_s _P__t_m_p_d_i_r and _L__t_m_p_n_a_m, used by the routines
     _t_e_m_p_n_a_m, _t_m_p_f_i_l_e, and _t_m_p_n_a_m are not available in <_s_t_d_i_o._h>.
     If the code requires them, just use:

     #include <sys/param.h>
     #define   P_tmpdir  "/usr/tmp"
     #define   L_tmpnam  MAXPATHLEN

     Also, note that the caveat in the System V manual page that
     these functions can start recycling previously used names is
     untrue in this system.

DESCRIPTION
     The above routines are available and behave as in System V.



Printed 11/26/99	January 12, 1996			1






COMPATS5(3)	    UNIX Programmer's Manual	      COMPATS5(3)



     strchr() and strrchr() are simply an alternate entry points
     into index() and rindex() respectively.





















































Printed 11/26/99	January 12, 1996			2