diff options
| author | robojumper <robojumper@gmail.com> | 2025-08-03 15:51:20 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-09-13 10:13:11 +0200 |
| commit | 402586bf5248a703934bd3cbcdc37c5285ec2fe3 (patch) | |
| tree | 30ed6a0873c359204d32c15348b7ccad18700126 /include/sized_string.h | |
| parent | b4200519b168b970b3afdccf357d1ef42001b52a (diff) | |
d_lyt_common_title OK
Diffstat (limited to 'include/sized_string.h')
| -rw-r--r-- | include/sized_string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sized_string.h b/include/sized_string.h index 44e26ebe..3d67e74a 100644 --- a/include/sized_string.h +++ b/include/sized_string.h @@ -37,6 +37,10 @@ struct SizedString { return mChars; } + void empty() { + mChars[0] = '\0'; + } + void operator=(const char *src) { if (src != mChars) { mChars[0] = '\0'; |
