OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [linux/] [include/] [getopt.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/* libc/sys/linux/include/getopt.h - Extended command line parsing */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
#ifndef _NEWLIB_GETOPT_H
7
#define _NEWLIB_GETOPT_H
8
 
9
#include <unistd.h>
10
 
11
 
12
enum { no_argument, required_argument, optional_argument };
13
 
14
struct option {
15
    const char *name;
16
    int has_arg;
17
    int *flag;
18
    int val;
19
};
20
 
21
int getopt_long(int argc,char *const argv[],const char *optstring,
22
  const struct option *longopts,int *longindex);
23
 
24
int getopt_long_only(int argc,char *const argv[],const char *optstring,
25
  const struct option *longopts,int *longindex);
26
 
27
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.