函数逻辑报告 |
Source Code:lib\test_strscpy.c |
Create Date:2022-07-27 07:30:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:() - Run a specific test case.*@src: Source string, argument to strscpy_pad()*@count: Size of destination buffer, argument to strscpy_pad()*@expected: Expected return value from call to strscpy_pad()
函数原型:static int __init tc(char *src, int count, int expected, int chars, int terminator, int pad)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
char * | src | |
int | count | |
int | expected | |
int | chars | |
int | terminator | |
int | pad |
38 | POISON等于'z' |
42 | 如果非src则 |
43 | 打印错误信息("null source string not supported\n") |
44 | 返回:负1 |
50 | max_expected等于count减1 |
55 | 如果expected大于max_expected则 |
56 | 打印警告信息("expected (%d) is bigger than can possibly be returned (%d)", expected, max_expected) |
67 | 如果字符串指定长度比较不等于0则 |
84 | 如果terminator则 |
92 | index等于chars加terminator加i |
99 | nr_bytes_poison等于buf的长度减chars减terminator减pad |
100 | 以i小于nr_bytes_poison循环 |
108 | 返回:0 |
109 | fail : |
110 | failed_tests自加 |
111 | 返回:负1 |
名称 | 描述 |
---|---|
selftest |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |