MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / strlen

Function strlen

Tools/AP_Bootloader/support.cpp:431–436  ·  view source on GitHub ↗

simple variant of std c function to reduce used flash space

Source from the content-addressed store, hash-verified

429
430//simple variant of std c function to reduce used flash space
431size_t strlen(const char *s1)
432{
433 size_t ret = 0;
434 while (*s1++) ret++;
435 return ret;
436}
437
438//simple variant of std c function to reduce used flash space
439void *memset(void *s, int c, size_t n)

Callers 15

nmea_printfFunction · 0.85
nmea_printf_bufferFunction · 0.85
writeMethod · 0.85
getoptionMethod · 0.85
writeMethod · 0.85
test_printf_floatsFunction · 0.85
play_tuneMethod · 0.85
decode_latest_termMethod · 0.85
get_persistent_paramsMethod · 0.85

Calls

no outgoing calls

Tested by 6

test_printf_floatsFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
test_UDP_clientMethod · 0.68
test_TCP_clientMethod · 0.68
check_resultFunction · 0.68