📄 string.h
字号:
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.This file is part of the GNU C Library.The GNU C Library is free software; you can redistribute it and/ormodify it under the terms of the GNU Library General Public License aspublished by the Free Software Foundation; either version 2 of theLicense, or (at your option) any later version.The GNU C Library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULibrary General Public License for more details.You should have received a copy of the GNU Library General PublicLicense along with the GNU C Library; see the file COPYING.LIB. Ifnot, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,Cambridge, MA 02139, USA. *//* * ANSI Standard: 4.11 STRING HANDLING <string.h> */#ifndef _STRING_H#define _STRING_H 1#include <features.h>__BEGIN_DECLSextern __ptr_t memcpy __P ((__ptr_t __dest, __const __ptr_t __src, size_t __n));/* Copy N bytes of SRC to DEST, guaranteeing correct behavior for overlapping strings. */extern __ptr_t memmove __P ((__ptr_t __dest, __const __ptr_t __src, size_t __n));/* Copy no more than N bytes of SRC to DEST, stopping when C is found. Return the position in DEST one byte past where C was copied, or NULL if C was not found in the first N bytes of SRC. */extern __ptr_t memccpy __P ((__ptr_t __dest, __const __ptr_t __src, int __c, size_t __n));/* Set N bytes of S to C. */extern __ptr_t memset __P ((__ptr_t __s, int __c, size_t __n));/* `memcmp' is a built-in function for gcc 2.x. */#if defined(__STDC__) && __GNUC__ < 2/* Compare N bytes of S1 and S2. */extern int memcmp __P ((__const __ptr_t __s1, __const __ptr_t __s2, size_t __n));#endif/* Search N bytes of S for C. */extern __ptr_t memchr __P ((__const __ptr_t __s, int __c, size_t __n));/* Copy SRC to DEST. */extern char *strcpy __P ((char *__dest, __const char *__src));/* Copy no more than N characters of SRC to DEST. */extern char *strncpy __P ((char *__dest, __const char *__src, size_t __n));/* Append SRC onto DEST. */extern char *strcat __P ((char *__dest, __const char *__src));/* Append no more than N characters from SRC onto DEST. */extern char *strncat __P ((char *__dest, __const char *__src, size_t __n));/* Compare S1 and S2. */extern int strcmp __P ((__const char *__s1, __const char *__s2));/* Compare N characters of S1 and S2. */extern int strncmp __P ((__const char *__s1, __const char *__s2, size_t __n));/* Copy N bytes of SRC to DEST (like memmove, but args reversed). */extern void bcopy __P ((__const __ptr_t __src, __ptr_t __dest, size_t __n));/* Set N bytes of S to 0. */extern void bzero __P ((__ptr_t __s, size_t __n));/* Compare N bytes of S1 and S2 (same as memcmp). */extern int bcmp __P ((__const __ptr_t __s1, __const __ptr_t __s2, size_t __n));__END_DECLS#endif /* _STRING_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -