.\" Copyright (c) 1988 Regents of the University of California. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms are permitted .\" provided that the above copyright notice and this paragraph are .\" duplicated in all such forms and that any documentation, .\" advertising materials, and other materials related to such .\" distribution and use acknowledge that the software was developed .\" by the University of California, Berkeley. The name of the .\" University may not be used to endorse or promote products derived .\" from this software without specific prior written permission. .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" .\" @(#)tmpnam.3 5.6 (Berkeley) 08/03/88 .\" .TH COMPATS5 3 "" .UC 7 .SH NAME memccpy, memchr, memcmp, memcpy, memset, strchr, strcspn, strpbrk, strrchr, strspn, strtok, tempnam, tmpfile, tmpnam \- System V compatibility routines .SH SYNOPSIS .nf .B char *memccpy(from, to, ch, count) .B char *from, *to; .B int ch, count; .PP .B char *memchr(str, ch, count) .B char *str; .B int ch, count; .PP .B int memcmp(str1, str2, count) .B char *str1, *str2; .B int count; .PP .B char *memcpy(from, to, count) .B char *from, to; .B int count; .PP .B char *memset(str, ch, count) .B char *str; .B int ch, count; .PP .B char *strchr(str, ch); .B char *str; .B int ch; .PP .B int strcspn(str, chars) .B char *str, *chars; .PP .B char *strpbrk(str, chars) .B char *str, *chars; .PP .B char *strrchr(str, ch); .B char *str; .B int ch; .PP .B int strspn(str, chars) .B char *str, *chars; .PP .B char *strtok(str, sep) .B char *str, *sep; .PP .B char *strtol(str, ptr, base) .B char *str, **ptr; .B int base; .PP .B char *tempnam(tmpdir, prefix) .B char *tmpdir, *prefix; .PP .B char *tmpfile() .PP .B char *tmpnam(str) .B char *str; .PP .SH COMMENT The \fI#defines\fP \fIP_tmpdir\fP and \fIL_tmpnam\fP, used by the routines \fItempnam\fP, \fItmpfile\fP, and \fItmpnam\fP are not available in \fI\fP. If the code requires them, just use: .PP #include .br #define P_tmpdir "/usr/tmp" #define L_tmpnam MAXPATHLEN .PP 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. .SH DESCRIPTION The above routines are available and behave as in System V.