source: icGREP/icgrep-devel/cudd-2.5.1/util/stub.c @ 5820

Last change on this file since 5820 was 4597, checked in by nmedfort, 4 years ago

Upload of the CUDD library.

File size: 989 bytes
Line 
1/* LINTLIBRARY */
2
3#ifdef LACK_SYS5
4
5char *
6memcpy(s1, s2, n)
7char *s1, *s2;
8int n;
9{
10    extern bcopy();
11    bcopy(s2, s1, n);
12    return s1;
13}
14
15char *
16memset(s, c, n)
17char *s;
18int c;
19int n;
20{
21    extern bzero();
22    register int i;
23
24    if (c == 0) {
25        bzero(s, n);
26    } else {
27        for(i = n-1; i >= 0; i--) {
28            *s++ = c;
29        }
30    }
31    return s;
32}
33
34char *
35strchr(s, c)
36char *s;
37int c;
38{
39    extern char *index();
40    return index(s, c);
41}
42
43char *
44strrchr(s, c)
45char *s;
46int c;
47{
48    extern char *rindex();
49    return rindex(s, c);
50}
51
52
53#endif
54
55#ifndef UNIX
56#include <stdio.h>
57
58FILE *
59popen(string, mode)
60const char *string;
61const char *mode;
62{
63    (void) fprintf(stderr, "popen not supported on your operating system\n");
64    return NULL;
65}
66
67
68int
69pclose(fp)
70FILE *fp;
71{
72    (void) fprintf(stderr, "pclose not supported on your operating system\n");
73    return -1;
74}
75#endif
76
77/* put something here in case some compilers abort on empty files ... */
78int
79util_do_nothing()
80{
81    return 1;
82}
Note: See TracBrowser for help on using the repository browser.