MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / Func_1

Function Func_1

examples/test/dhry_2.c:109–132  ·  view source on GitHub ↗
(Ch_1_Par_Val, Ch_2_Par_Val)

Source from the content-addressed store, hash-verified

107
108
109Enumeration Func_1 (Ch_1_Par_Val, Ch_2_Par_Val)
110/*************************************************/
111 /* executed three times */
112 /* first call: Ch_1_Par_Val == 'H', Ch_2_Par_Val == 'R' */
113 /* second call: Ch_1_Par_Val == 'A', Ch_2_Par_Val == 'C' */
114 /* third call: Ch_1_Par_Val == 'B', Ch_2_Par_Val == 'C' */
115
116Capital_Letter Ch_1_Par_Val;
117Capital_Letter Ch_2_Par_Val;
118{
119 Capital_Letter Ch_1_Loc;
120 Capital_Letter Ch_2_Loc;
121
122 Ch_1_Loc = Ch_1_Par_Val;
123 Ch_2_Loc = Ch_1_Loc;
124 if (Ch_2_Loc != Ch_2_Par_Val)
125 /* then, executed */
126 return (Ident_1);
127 else /* not executed */
128 {
129 Ch_1_Glob = Ch_1_Loc;
130 return (Ident_2);
131 }
132} /* Func_1 */
133
134
135Boolean Func_2 (Str_1_Par_Ref, Str_2_Par_Ref)

Callers 2

dhry_testFunction · 0.85
Func_2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected