MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / find

Method find

libraries/AtomicWeight/AtomicWeight.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203
204
205uint8_t PTOE::find(const char * abbrev)
206{
207 // how about caching here?
208 for (uint8_t i = 0; i < _size; i++)
209 {
210 if (strcmp(elements[i].name, abbrev) == 0) return i;
211 }
212 return 255;
213}
214
215
216////////////////////////////////////////////////////////////////

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36