]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/libsa/string.h
486492e952815abaa6bd1312c8adf3f7cdd9e06d
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
28 * Revision 1.1.1.1 1998/09/22 21:05:51 wsanchez
29 * Import of Mac OS X kernel (~semeria)
31 * Revision 1.1.1.1 1998/03/07 02:25:35 wsanchez
32 * Import of OSF Mach kernel (~mburg)
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]
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]
42 * Revision 1.1.2.3 1996/10/07 07:20:26 paire
43 * Added strncat() prototype, since it is defined in libsa_mach.
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]
50 * Revision 1.1.2.1 1996/09/17 16:56:15 bruel
51 * created for standalone mach servers.
57 #ifndef _MACH_STRING_H_
58 #define _MACH_STRING_H_ 1
60 #ifdef MACH_KERNEL_PRIVATE
63 #include <sys/types.h>
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);
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 *);
92 #endif /* _MACH_STRING_H_ */