Changeset 44 for vis_dev/vis-2.3/src/debug/debugUtilities.c
- Timestamp:
- Jan 24, 2012, 3:41:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vis_dev/vis-2.3/src/debug/debugUtilities.c
r42 r44 236 236 } 237 237 } 238 238 /**Function******************************************************************** 239 240 Synopsis [Test if a node is in a given submodule] 241 242 Description [Return true if the node is in one of the submdule, 243 else return false. The comparison is made by the name of the node 244 compare to the name of the submodule. Node name n that belongs to a 245 subsystem named sub as in the following form : sub.n] 246 247 SideEffects [] 248 249 SeeAlso [] 250 251 ******************************************************************************/ 252 253 boolean Dbg_TestNodeInSubs(char* nodeName,array_t * subsName) 254 { 255 assert(nodeName != NIL(char)); 256 if(subsName == NIL(array_t)) 257 return 0; 258 if(array_n(subsName) == 0) 259 return 0; 260 int i; 261 char * subName; 262 arrayForEachItem(char*, subsName, i, subName){ 263 if(strstr(nodeName,subName) != NULL) 264 return 1; 265 } 266 return 0; 267 } 268
Note: See TracChangeset
for help on using the changeset viewer.