Annotation of XNU/osfmk/libsa/string.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * The contents of this file constitute Original Code as defined in and
        !             7:  * are subject to the Apple Public Source License Version 1.1 (the
        !             8:  * "License").  You may not use this file except in compliance with the
        !             9:  * License.  Please obtain a copy of the License at
        !            10:  * http://www.apple.com/publicsource and read it before using this file.
        !            11:  * 
        !            12:  * This Original Code and all software distributed under the License are
        !            13:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            14:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            15:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            16:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            17:  * License for the specific language governing rights and limitations
        !            18:  * under the License.
        !            19:  * 
        !            20:  * @APPLE_LICENSE_HEADER_END@
        !            21:  */
        !            22: /*
        !            23:  * @OSF_COPYRIGHT@
        !            24:  */
        !            25: /*
        !            26:  * HISTORY
        !            27:  * 
        !            28:  * Revision 1.1.1.1  1998/09/22 21:05:51  wsanchez
        !            29:  * Import of Mac OS X kernel (~semeria)
        !            30:  *
        !            31:  * Revision 1.1.1.1  1998/03/07 02:25:35  wsanchez
        !            32:  * Import of OSF Mach kernel (~mburg)
        !            33:  *
        !            34:  * Revision 1.1.4.1  1997/02/21  15:43:21  barbou
        !            35:  *     Removed "size_t" definition, include "types.h" instead.
        !            36:  *     [1997/02/21  15:36:54  barbou]
        !            37:  *
        !            38:  * Revision 1.1.2.4  1996/10/10  14:13:33  emcmanus
        !            39:  *     Added memmove() prototype.
        !            40:  *     [1996/10/10  14:11:51  emcmanus]
        !            41:  * 
        !            42:  * Revision 1.1.2.3  1996/10/07  07:20:26  paire
        !            43:  *     Added strncat() prototype, since it is defined in libsa_mach.
        !            44:  *     [96/10/07            paire]
        !            45:  * 
        !            46:  * Revision 1.1.2.2  1996/10/04  11:36:07  emcmanus
        !            47:  *     Added strspn() prototype, since it is defined in libsa_mach.
        !            48:  *     [1996/10/04  11:31:57  emcmanus]
        !            49:  * 
        !            50:  * Revision 1.1.2.1  1996/09/17  16:56:15  bruel
        !            51:  *     created for standalone mach servers.
        !            52:  *     [96/09/17            bruel]
        !            53:  * 
        !            54:  * $EndLog$
        !            55:  */
        !            56: 
        !            57: #ifndef        _MACH_STRING_H_
        !            58: #define        _MACH_STRING_H_ 1
        !            59: 
        !            60: #ifdef MACH_KERNEL_PRIVATE
        !            61: #include <types.h>
        !            62: #else
        !            63: #include <sys/types.h>
        !            64: #endif
        !            65: 
        !            66: #ifdef __cplusplus
        !            67: extern "C" {
        !            68: #endif
        !            69: 
        !            70: #ifndef        NULL
        !            71: #define NULL   0
        !            72: #endif
        !            73: 
        !            74: extern void    *memcpy(void *, const void *, size_t);
        !            75: extern void    *memmove(void *, const void *, size_t);
        !            76: extern void    *memset(void *, int, size_t);
        !            77: 
        !            78: extern size_t  strlen(const char *);
        !            79: extern char    *strcpy(char *, const char *);
        !            80: extern char    *strncpy(char *, const char *, size_t);
        !            81: extern char    *strcat(char *, const char *);
        !            82: extern char    *strncat(char *, const char *, size_t);
        !            83: extern int     strcmp(const char *, const char *);
        !            84: extern int     strncmp(const char *,const char *, size_t);
        !            85: extern char    *strchr(const char *s, int c);
        !            86: extern size_t  strspn(const char *, const char *);
        !            87: 
        !            88: #ifdef __cplusplus
        !            89: }
        !            90: #endif
        !            91: 
        !            92: #endif /* _MACH_STRING_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.