Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [c-string]

A "C string" is an array of characters that ends with a 0 (null character) byte. The array, not any pointer, is the string.

Filter by
Sorted by
Tagged with
12 votes
6 answers
4k views

Using String instead of C string, yet another attempt to touch a loaded issue

I've been reading a lot over the years why we should not use the notorious String class and how heap fragmentation is bad practice and not professional and we should never use it in our programs or we'...
Nino's user avatar
  • 411
0 votes
3 answers
2k views

How to replace String objects with char arrays while still using string methods

I am running the following code on my ESP8266 (AI-Thinker ESP8266MOD). I send an HTTP GET request and a pin is set to high for a 1/2 second. However, after some time (sometimes 1hr, 2hrs, 12hrs, ...
David Klempfner's user avatar