1 /* -*-comment-start: "//";comment-end:""-*-
2 * Mes --- Maxwell Equations of Software
3 * Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
5 * This file is part of Mes.
7 * Mes is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or (at
10 * your option) any later version.
12 * Mes is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Mes. If not, see <http://www.gnu.org/licenses/>.
24 eputs ("abort stub\n");
31 eputs ("atof stub\n");
38 eputs ("atol stub\n");
45 eputs ("bcmp stub\n");
50 bcopy (void const *src, void *dest, size_t n)
52 return memmove (dest, src, n);
58 eputs ("bzero stub\n");
71 eputs ("fpurge stub\n");
78 eputs ("freadahead stub\n");
83 index (char const *s, int c)
91 return isdigit (c) || isalpha (c);
97 return islower (c) || isupper (c);
103 return c >= 0 && c < 32;
109 return c >= 'a' && c <= 'z';
115 return c >= 32 && c < 127;
121 return isprint (c) && !isspace (c) && !isalnum (c);
127 return c >= 'A' && c <= 'Z';
133 eputs ("mktemp stub\n");
140 eputs ("pclose stub\n");
147 eputs ("popen stub\n");
152 rindex (char const *s, int c)
154 return strrchr (s, c);
160 eputs ("rewind stub\n");
167 eputs ("setbuf stub\n");
174 eputs ("signal stub\n");
181 eputs ("sys_errlist stub\n");
188 eputs ("sys_nerr stub\n");
195 eputs ("system stub\n");
202 eputs ("tolower stub\n");
209 eputs ("toupper stub\n");