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

📄 getopt.h

📁 debug source code under unix platform.
💻 H
字号:
#ifndef MP_GETOPT_H#define MP_GETOPT_H/* * mpatrol * A library for controlling and tracing dynamic memory allocations. * Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307, USA. *//* * Option parsing.  Provides a common interface for the mpatrol tools to parse * command line options. *//* * $Id: getopt.h,v 1.12 2002/01/08 20:13:59 graeme Exp $ */#include "config.h"#define SHORTOPT_MIN 1   /* minimum value for short options */#define SHORTOPT_MAX 255 /* maximum value for short options *//* Contains all of the details about long options. */typedef struct option{    char *name; /* option name */    int value;  /* option value */    char *arg;  /* option argument */    char *desc; /* option description */}option;#ifdef __cplusplusextern "C"{#endif /* __cplusplus */MP_EXPORT unsigned long __mp_optindex;MP_EXPORT char *__mp_optarg;MP_EXPORT char *__mp_basename(char *);MP_EXPORT int __mp_getnum(char *, char *, long *, int);MP_EXPORT int __mp_getopt(unsigned long, char **, char *, option *);MP_EXPORT char *__mp_shortopts(char *, option *);MP_EXPORT void __mp_showopts(option *);MP_EXPORT int __mp_match(char *, char *);#ifdef __cplusplus}#endif /* __cplusplus */#endif /* MP_GETOPT_H */

⌨️ 快捷键说明

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