Timeline for How to clear of contents of string in Arduino?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 11, 2016 at 15:15 | comment | added | dlu | For C (null terminated) strings, if the first character is a null, then the string is empty or clear. Functionally that solves the problem, but if there are security concerns then you are right that the whole string should be cleared. | |
| Jan 11, 2016 at 14:29 | comment | added | ott-- |
This clears only the first byte. With = { 0 }; everything is cleared.
|
|
| Jan 11, 2016 at 13:25 | history | answered | dlu | CC BY-SA 3.0 |