MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_strnlen

Function acl_strnlen

lib_acl/src/stdlib/string/acl_mystring.c:395–403  ·  view source on GitHub ↗

* strnlen - Find the length of a length-limited string * @s: The string to be sized * @count: The maximum number of bytes to search */

Source from the content-addressed store, hash-verified

393 * @count: The maximum number of bytes to search
394 */
395size_t acl_strnlen(const char * s, size_t count)
396{
397 const char *sc;
398
399 for (sc = s; count-- && *sc != '\0'; ++sc) {
400 /* nothing */;
401 }
402 return sc - s;
403}
404
405int acl_safe_atoi(const char *s, int def) {
406 char* end = NULL;

Callers 1

acl_vsnprintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…