strings.h

Go to the documentation of this file.
00001 /*-
00002  * Copyright (c) 2002 Mike Barcroft <[email protected]>
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  *
00014  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00015  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00016  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00017  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00018  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00019  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00020  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00021  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00022  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00023  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00024  * SUCH DAMAGE.
00025  *
00026  * $FreeBSD: src/include/strings.h,v 1.6 2004/07/23 07:13:35 tjr Exp $
00027  *  © Portions copyright (c) 2005-2006  Nokia Corporation.  All rights reserved.
00028  */
00029 
00030 #ifndef _STRINGS_H_
00031 #define _STRINGS_H_
00032 
00033 #include <sys/cdefs.h>
00034 #include <sys/_types.h>
00035 
00036 #ifndef _SIZE_T_DECLARED
00037 typedef __size_t        size_t;
00038 #define _SIZE_T_DECLARED
00039 #endif
00040 
00041 
00042 __BEGIN_DECLS
00043 IMPORT_C 
00044 int      bcmp(const void *, const void *, size_t) __pure;       /* LEGACY */
00045 IMPORT_C 
00046 void     bcopy(const void *, void *, size_t);                   /* LEGACY */
00047 IMPORT_C 
00048 void     bzero(void *, size_t);                                 /* LEGACY */
00049 IMPORT_C 
00050 int      ffs(int) __pure2;
00051 IMPORT_C 
00052 char    *index(const char *, int) __pure;                       /* LEGACY */
00053 IMPORT_C 
00054 char    *rindex(const char *, int) __pure;                      /* LEGACY */
00055 IMPORT_C 
00056 int      strcasecmp(const char *, const char *) __pure;
00057 IMPORT_C 
00058 int      strncasecmp(const char *, const char *, size_t) __pure;
00059 __END_DECLS
00060 
00061 #endif /* _STRINGS_H_ */

Copyright © Nokia Corporation 2001-2008
Back to top