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

📄 wbxml_mem.c

📁 WAP Binary XML 简单地说
💻 C
字号:
/* * libwbxml, the WBXML Library. * Copyright (C) 2002-2005 Aymerick Jehanne <aymerick@jehanne.org> *  * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. *  * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. *  * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *  * LGPL v2.1: http://www.gnu.org/copyleft/lesser.txt *  * Contact: libwbxml@aymerick.com * Home: http://libwbxml.aymerick.com */ /** * @file wbxml_mem.c * @ingroup wbxml_mem * * @author Aymerick Jehanne <libwbxml@aymerick.com> * @date 02/11/24 * * @brief Memory Functions */#include "wbxml.h"/*************************************************** *    Public Functions */WBXML_DECLARE(void *) wbxml_malloc(size_t size){#ifdef WBXML_USE_LEAKTRACKER    return lt_malloc(size);#else    return malloc(size);#endif}WBXML_DECLARE(void) wbxml_free(void *memblock){#ifdef WBXML_USE_LEAKTRACKER    lt_free(memblock);#else    free(memblock);#endif}WBXML_DECLARE(void *) wbxml_realloc(void *memblock, size_t size){#ifdef WBXML_USE_LEAKTRACKER    return lt_realloc(memblock, size);#else    return realloc(memblock, size);#endif}WBXML_DECLARE(char *) wbxml_strdup(const char *str){#ifdef WBXML_USE_LEAKTRACKER    return lt_strdup(str);#else    return strdup(str);#endif}

⌨️ 快捷键说明

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