Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

abkstring.h

Go to the documentation of this file.
00001 /**************************************************************************
00002 ***    
00003 *** Copyright (c) 1995-2000 Regents of the University of California,
00004 ***               Andrew E. Caldwell, Andrew B. Kahng and Igor L. Markov
00005 *** Copyright (c) 2000-2004 Regents of the University of Michigan,
00006 ***               Saurabh N. Adya, Jarrod A. Roy and Igor L. Markov
00007 ***
00008 ***  Contact author(s): abk@cs.ucsd.edu, imarkov@umich.edu
00009 ***  Original Affiliation:   UCLA, Computer Science Department,
00010 ***                          Los Angeles, CA 90095-1596 USA
00011 ***
00012 ***  Permission is hereby granted, free of charge, to any person obtaining 
00013 ***  a copy of this software and associated documentation files (the
00014 ***  "Software"), to deal in the Software without restriction, including
00015 ***  without limitation 
00016 ***  the rights to use, copy, modify, merge, publish, distribute, sublicense, 
00017 ***  and/or sell copies of the Software, and to permit persons to whom the 
00018 ***  Software is furnished to do so, subject to the following conditions:
00019 ***
00020 ***  The above copyright notice and this permission notice shall be included
00021 ***  in all copies or substantial portions of the Software.
00022 ***
00023 *** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
00024 *** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
00025 *** OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
00026 *** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00027 *** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
00028 *** OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
00029 *** THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00030 ***
00031 ***
00032 ***************************************************************************/
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 /*
00041  * 
00042  * Copyright (c) 1995, by Sun Microsystems, Inc.
00043  * Copyright (c) 1997, by ABKGroup and the Regents of the University of Calif.
00044  *
00045  */
00046 
00049 
00050 /* using the <string.h> distributed with the SunPro CC compiler
00051  CHANGES (those made after August 18, 1997)
00052  970820  ilm  moved handling of strcasecmp and _stricmp from abktempl.h
00053  990119  mro  added analogous corresp. btw. strncasecmp and _strnicmp
00054  ilm: 970722   added for "symmetry" (NT -> Solaris portability)
00055 */
00056 #ifndef _STRINGS_H
00057 #define _STRINGS_H
00058 
00059 #if defined(WIN32) && !defined(STRCASECMP)
00060 #define STRCASECMP
00061 #define strcasecmp _stricmp
00062 #endif
00063 
00064 #if !defined(WIN32) && !defined(STRICMP) && !defined(STRCASECMP)
00065 #define STRICMP
00066 #define _stricmp strcasecmp
00067 #endif
00068 
00069 #if defined(WIN32) && !defined(STRNCASECMP)
00070 #define STRNCASECMP
00071 #define strncasecmp _strnicmp
00072 #endif
00073 
00074 
00075 #if !defined(WIN32) && !defined(STRNICMP) && !defined(STRCASECMP)
00076 #define STRNICMP
00077 #define _strnicmp strncasecmp
00078 #endif
00079 
00080 #ifdef WIN32
00081 char *ulltostr(unsigned value,char *ptr);
00082 char *lltostr(int value,char *ptr);
00083 #endif
00084 
00085 /* =========================================================================*/
00086 
00087 #ifndef WIN32
00088 #include <string.h>
00089 #else
00090 
00091 #if !defined(_XOPEN_SOURCE)
00092 #include <string.h>
00093 #endif
00094 
00095 #ifdef  __cplusplus
00096 extern "C" {
00097 #endif
00098 
00099 #if defined(__STDC__)
00100 
00101 extern int bcmp(const void *s1, const void *s2, size_t n);
00102 extern void bcopy(const void *s1, void *s2, size_t n);
00103 extern void bzero(void *s, size_t n);
00104 
00105 extern char *index(const char *s, int c);
00106 extern char *rindex(const char *s, int c);
00107 
00108 #else
00109 
00110 extern int bcmp();
00111 extern void bcopy();
00112 extern void bzero();
00113 
00114 extern char *index();
00115 extern char *rindex();
00116 
00117 #endif  /* __STDC__ */
00118 
00119 #ifdef  __cplusplus
00120 }
00121 #endif
00122 
00123 #endif /* defined(WIN32)*/
00124 
00125 #endif  /* _STRINGS_H */

Generated on Mon Apr 25 01:09:23 2005 for Parquete by doxygen 1.3.2