source: vendor/emx/current/src/os2/clib.h

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.6 KB
Line 
1/* clib.h -- Header file for emx.dll's minimal C run-time library
2 Copyright (c) 1992-1995 by Eberhard Mattes
3
4This file is part of emx.
5
6emx is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11emx is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with emx; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA.
20
21As special exception, emx.dll can be distributed without source code
22unless it has been changed. If you modify emx.dll, this exception
23no longer applies and you must remove this paragraph from all source
24files for emx.dll. */
25
26
27#if !defined (_SIZE_T)
28#define _SIZE_T
29typedef unsigned long size_t;
30#endif
31
32#define offsetof(type, member) ((size_t)&((type *)0)->member)
33
34void _defext (char *dst, const char *ext);
35char *_getname (const char *path);
36void *memcpy (void *dst, const void *src, size_t count);
37size_t strlen (const char *s);
38int strcmp (const char *string1, const char *string2);
39char *strcpy (char *dst, const char *src);
40int stricmp (const char *string1, const char *string2);
41void *memset (void *dst, int c, size_t n);
42int strncmp (const char *string1, const char *string2, size_t n);
43
44static inline int tolower (int c)
45{
46 return (c >= 'A' && c <= 'Z' ? c - 'A' + 'a' : c);
47}
Note: See TracBrowser for help on using the repository browser.