You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
149 B

преди 5 години
преди 5 години
преди 5 години
  1. #pragma once
  2. #include <stddef.h>
  3. namespace cstring{
  4. constexpr size_t strlen( const char* s ) noexcept
  5. {
  6. return *s ? 1 + strlen(s + 1) : 0;
  7. }
  8. }