Function report |
Source Code:lib\cmdline.c |
Create Date:2022-07-28 06:12:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_options - Parse a string into a list of integers*@str: String to be parsed*@nints: size of integer array*@ints: integer array* This function parses a string containing a comma-separated* list of integers, a hyphen-separated range of _positive_
Proto:char *get_options(const char *str, int nints, int *ints)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | str | |
int | nints | |
int * | ints |
89 | i = 1 |
93 | If res == 0 Then Break |
95 | If res == 3 Then |
97 | range_nums = If a hyphen was found in get_option, this will handle the* range of numbers, M-N. This will expand the range and insert* the values[M, M+1, ..., N] into the ints array in get_options. |
98 | If range_nums < 0 Then Break |
105 | i += range_nums - 1 |
107 | i++ |
108 | If res == 1 Then Break |
112 | Return str |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |