⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arg_check.h

📁 减少内存碎片的malloc分配函数
💻 H
字号:
/* * Defines for malloc string routines... * * Copyright 2000 by Gray Watson * * This file is part of the dmalloc package. * * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all * copies, and that the name of Gray Watson not be used in advertising * or publicity pertaining to distribution of the document or software * without specific, written prior permission. * * Gray Watson makes no representations about the suitability of the * software described herein for any purpose.  It is provided "as is" * without express or implied warranty. * * The author may be contacted via http://dmalloc.com/ * * $Id: arg_check.h,v 1.22 2004/01/31 16:19:34 gray Exp $ */#ifndef __ARG_CHECK_H__#define __ARG_CHECK_H__#include "dmalloc.h"			/* for DMALLOC_SIZE */#include "conf.h"/*<<<<<<<<<<  The below prototypes are auto-generated by fillproto */#if HAVE_ATOI/* * Dummy function for checking atoi's arguments. */externint	_dmalloc_atoi(const char *str);#endif /* if HAVE_ATOI */#if HAVE_ATOL/* * Dummy function for checking atol's arguments. */externlong	_dmalloc_atol(const char *str);#endif /* if HAVE_ATOL */#if HAVE_BCMP/* * Dummy function for checking bcmp's arguments. */externint	_dmalloc_bcmp(const void *b1, const void *b2, const DMALLOC_SIZE len);#endif /* if HAVE_BCMP */#if HAVE_BCOPY/* * Dummy function for checking bcopy's arguments. */externvoid	_dmalloc_bcopy(const void *from, void *to, const DMALLOC_SIZE len);#endif /* if HAVE_BCOPY */#if HAVE_BZERO/* * Dummy function for checking bzero's arguments. */externvoid	_dmalloc_bzero(void *buf, const DMALLOC_SIZE len);#endif /* if HAVE_BZERO */#if HAVE_INDEX/* * Dummy function for checking index's arguments. */externchar	*_dmalloc_index(const char *str, const char ch);#endif /* if HAVE_INDEX */#if HAVE_MEMCCPY/* * Dummy function for checking memccpy's arguments. */externvoid	*_dmalloc_memccpy(void *s1, const void *s2, const int ch,			  const DMALLOC_SIZE len);#endif /* if HAVE_MEMCCPY */#if HAVE_MEMCHR/* * Dummy function for checking memchr's arguments. */externvoid	*_dmalloc_memchr(const void *s1, const int ch, const DMALLOC_SIZE len);#endif /* if HAVE_MEMCHR */#if HAVE_MEMCMP/* * Dummy function for checking memcmp's arguments. */externint	_dmalloc_memcmp(const void *b1, const void *b2, const DMALLOC_SIZE len);#endif /* if HAVE_MEMCMP */#if HAVE_MEMCPY/* * Dummy function for checking memcpy's arguments. */externvoid	*_dmalloc_memcpy(void *to, const void *from, const DMALLOC_SIZE len);#endif /* if HAVE_MEMCPY */#if HAVE_MEMMOVE/* * Dummy function for checking memcpy's arguments. */externvoid	*_dmalloc_memmove(void *to, const void *from, const DMALLOC_SIZE len);#endif /* if HAVE_MEMMOVE */#if HAVE_MEMSET/* * Dummy function for checking memset's arguments. */externvoid	*_dmalloc_memset(void *buf, const int ch, const DMALLOC_SIZE len);#endif /* if HAVE_MEMSET */#if HAVE_RINDEX/* * Dummy function for checking rindex's arguments. */externchar	*_dmalloc_rindex(const char *str, const char ch);#endif /* if HAVE_RINDEX */#if HAVE_STRCASECMP/* * Dummy function for checking strcasecmp's arguments. */externint	_dmalloc_strcasecmp(const char *s1, const char *s2);#endif /* if HAVE_STRCASECMP */#if HAVE_STRCAT/* * Dummy function for checking strcat's arguments. */externchar	*_dmalloc_strcat(char *to, const char *from);#endif /* if HAVE_STRCAT */#if HAVE_STRCHR/* * Dummy function for checking strchr's arguments. */externchar	*_dmalloc_strchr(const char *str, const int ch);#endif /* if HAVE_STRCHR */#if HAVE_STRCMP/* * Dummy function for checking strcmp's arguments. */externint	_dmalloc_strcmp(const char *s1, const char *s2);#endif /* if HAVE_STRCMP */#if HAVE_STRCPY/* * Dummy function for checking strcpy's arguments. */externchar	*_dmalloc_strcpy(char *to, const char *from);#endif /* if HAVE_STRCPY */#if HAVE_STRCSPN/* * Dummy function for checking strcspn's arguments. */externint	_dmalloc_strcspn(const char *str, const char *list);#endif /* if HAVE_STRCSPN */#if HAVE_STRLEN/* * Dummy function for checking strlen's arguments. */externDMALLOC_SIZE	_dmalloc_strlen(const char *str);#endif /* if HAVE_STRLEN */#if HAVE_STRNCASECMP/* * Dummy function for checking strncasecmp's arguments. */externint	_dmalloc_strncasecmp(const char *s1, const char *s2,			     const DMALLOC_SIZE len);#endif /* if HAVE_STRNCASECMP */#if HAVE_STRNCAT/* * Dummy function for checking strncat's arguments. */externchar	*_dmalloc_strncat(char *to, const char *from, const DMALLOC_SIZE len);#endif /* if HAVE_STRNCAT */#if HAVE_STRNCMP/* * Dummy function for checking strncmp's arguments. */externint	_dmalloc_strncmp(const char *s1, const char *s2,			 const DMALLOC_SIZE len);#endif /* if HAVE_STRNCMP */#if HAVE_STRNCPY/* * Dummy function for checking strncpy's arguments. */externchar	*_dmalloc_strncpy(char *to, const char *from, const DMALLOC_SIZE len);#endif /* if HAVE_STRNCPY */#if HAVE_STRPBRK/* * Dummy function for checking strpbrk's arguments. */externchar	*_dmalloc_strpbrk(const char *str, const char *list);#endif /* if HAVE_STRPBRK */#if HAVE_STRRCHR/* * Dummy function for checking strrchr's arguments. */externchar	*_dmalloc_strrchr(const char *str, const int ch);#endif /* if HAVE_STRRCHR */#if HAVE_STRSPN/* * Dummy function for checking strspn's arguments. */externint	_dmalloc_strspn(const char *str, const char *list);#endif /* if HAVE_STRSPN */#if HAVE_STRSTR/* * Dummy function for checking strstr's arguments. */externchar	*_dmalloc_strstr(const char *str, const char *pat);#endif /* if HAVE_STRSTR */#if HAVE_STRTOK/* * Dummy function for checking strtok's arguments. */externchar	*_dmalloc_strtok(char *str, const char *sep);#endif /* if HAVE_STRTOK *//*<<<<<<<<<<   This is end of the auto-generated output from fillproto. */#endif /* ! __ARG_CHECK_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -