* strnlen - Find the length of a length-limited string * @s: The string to be sized * @count: The maximum number of bytes to search */
| 393 | * @count: The maximum number of bytes to search |
| 394 | */ |
| 395 | size_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 | |
| 405 | int acl_safe_atoi(const char *s, int def) { |
| 406 | char* end = NULL; |
no outgoing calls
no test coverage detected
searching dependent graphs…