Function report |
Source Code:lib\test_string.c |
Create Date:2022-07-28 06:25:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:strchr_selftest
Proto:static __init int strchr_selftest(void)
Type:int
Parameter:Nothing
117 | test_string = "abcdefghijkl" |
118 | empty_string = "" |
122 | When i < strlen(test_string) + 1 cycle |
123 | result = strchr(test_string, test_string[i]) |
124 | If result - test_string != i Then Return i + 'a' |
128 | result = strchr(empty_string, '\0') |
129 | If result != empty_string Then Return 0x101 |
132 | result = strchr(empty_string, 'a') |
133 | If result Then Return 0x102 |
136 | result = strchr(test_string, 'z') |
137 | If result Then Return 0x103 |
140 | Return 0 |
Name | Describe |
---|---|
string_selftest_init |
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 |