1COMPATS5(3)                Library Functions Manual                COMPATS5(3)
2
3
4

NAME

6       memccpy, memchr, memcmp, memcpy, memset, strchr, strrchr, tempnam, tmp‐
7       file, tmpnam - System V compatibility routines
8

SYNOPSIS

10       char *memccpy(from, to, ch, count)
11       char *from, *to;
12       int ch, count;
13
14       char *memchr(str, ch, count)
15       char *str;
16       int ch, count;
17
18       int memcmp(str1, str2, count)
19       char *str1, *str2;
20       int count;
21
22       char *memcpy(from, to, count)
23       char *from, to;
24       int count;
25
26       char *memset(str, ch, count)
27       char *str;
28       int ch, count;
29
30       char *strchr(str, ch);
31       char *str;
32       int ch;
33
34       char *tempnam(tmpdir, prefix)
35       char *tmpdir, *prefix;
36
37       char *tmpfile()
38
39       char *tmpnam(str)
40       char *str;
41

COMMENT

43       The #defines P_tmpdir and L_tmpnam, used by the routines tempnam,  tmp‐
44       file,  and tmpnam are not available in <stdio.h>.  If the code requires
45       them, just use:
46
47       #include <sys/param.h>
48       #define   P_tmpdir  "/usr/tmp" #define   L_tmpnam  MAXPATHLEN
49
50       Also, note that the caveat in the System V manual page that these func‐
51       tions  can start recycling previously used names is untrue in this sys‐
52       tem.
53

DESCRIPTION

55       The above routines are available and behave as in System V.
56
57       strchr() and strrchr()  are  simply  an  alternate  entry  points  into
58       index() and rindex() respectively.
59
60
61
624.4 Berkeley Distribution      January 12, 1996                    COMPATS5(3)
Impressum