1 Star 0 Fork 4.9K

罗小黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
getopt-h.md 3.38 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

getopt.h

Overview

Related Modules:

UTILS

Description:

Provides functions and data structures, such as command-line argument parsing.

You can use the functions provided in this file to perform operations related to wide character types during development, such as, command-line argument parsing.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

option

Defines the command parsing option.

Functions

Function Name

Description

getopt_long (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex)

int 

Parses the command-line arguments.

getopt_long_only (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longindex)

int 

Parses the command-line arguments.

1
https://gitee.com/lawguiren/docs.git
git@gitee.com:lawguiren/docs.git
lawguiren
docs
docs
master

搜索帮助