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

📄 alloc.c

📁 This a good VPN source
💻 C
字号:
/* FreeS/WAN allocation functions for starter * Copyright (C) 2004 Michael Richardson <mcr@sandelman.ottawa.on.ca> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>. * * This program 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 General Public License * for more details. * * RCSID $Id: alloc.c,v 1.1 2004/01/20 20:55:19 mcr Exp $ */#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <stdio.h>#include "starterlog.h"/* * die if allocations fail */void *xmalloc(size_t s){  void *m = malloc(s);    return m;}char *xstrdup(char *s){  char *m = strdup(s);  return m;}void *xrealloc(void *o, size_t s){  void *m = realloc(o, s);    return m;}/* * Local Variables: * c-basic-offset:4 * c-style: pluto * End: */

⌨️ 快捷键说明

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