mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-13 18:32:29 +00:00
feat(string): add basic string functions
This commit is contained in:
parent
3b19c68e2f
commit
f9b65946a0
3 changed files with 108 additions and 0 deletions
18
bc/String.hpp
Normal file
18
bc/String.hpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef BC_STRING_HPP
|
||||
#define BC_STRING_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace Blizzard {
|
||||
namespace String {
|
||||
|
||||
// Functions
|
||||
int32_t Copy(char* dst, const char* src, size_t len);
|
||||
uint32_t Length(const char* str);
|
||||
void MemFill(void* dst, uint32_t len, uint8_t fill);
|
||||
|
||||
} // namespace String
|
||||
} // namespace Blizzard
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue