mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-08 03:47:15 -04:00
26 lines
565 B
C++
26 lines
565 B
C++
//=======================================================================
|
|
// Copyright Baptiste Wicht 2013-2018.
|
|
// Distributed under the terms of the MIT License.
|
|
// (See accompanying file LICENSE or copy at
|
|
// http://www.opensource.org/licenses/MIT)
|
|
//=======================================================================
|
|
|
|
#ifndef CSTRING_H
|
|
#define CSTRING_H
|
|
|
|
#include <types.hpp>
|
|
|
|
namespace std {
|
|
|
|
inline uint64_t str_len(const char* a){
|
|
uint64_t length = 0;
|
|
while(*a++){
|
|
++length;
|
|
}
|
|
return length;
|
|
}
|
|
|
|
} //end of namespace std
|
|
|
|
#endif
|