Function report |
Source Code:lib\cmdline.c |
Create Date:2022-07-28 06:12:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int get_range(char **str, int *pint, int n)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| char ** | str | |
| int * | pint | |
| int | n |
| 27 | str++ |
| 29 | inc_counter = upper_range - pint |
| 32 | Return inc_counter |
| Name | Describe |
|---|---|
| get_options | 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_ |
| 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 |