函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\cmdline.c Create Date:2022-07-27 07:09:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static int get_range(char **str, int *pint, int n)

返回类型:int

参数:

类型参数名称
char **str
int *pint
intn
27  str自加
28  upper_range等于转换字符串为整形
29  inc_counter等于upper_rangepint
30 nx小于upper_range循环pint自加等于x
32  返回:inc_counter
调用者
名称描述
get_optionsget_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_