About 664,000 results
Open links in new tab
  1. STRLEN() doesnt return a expected number - Arduino Forum

    Dec 13, 2024 · I know this function cant go wrong so I must be doing something wrong. bool newData = true; char *AXpos; char *EYpos; const char *delimiter = ","; //char …

  2. strlen() - keep the length of the string in a variable

    Dec 23, 2015 · Good points, Paul and Lloyd. My answer was too brief. I just take it as given that 'strlen ()' doesn't include the terminating null character, and also should have addressed the …

  3. The strnlen () C Function Is Not Available - Arduino Forum

    Jun 28, 2023 · The strlen () function is defined, but the strnlen () function is not defined. Anybody know why this is the case and perhaps how to fix it? jremington June 28, 2023, 10:20pm 2

  4. [SOLVED] VirtualWire and const char * msg - Arduino Forum

    Jan 29, 2016 · In the transmitter example for VirtualWire, the message being sent is declared as const char *msg = "hello"; But what do I do if I want be flexible in the message I am sending? …

  5. Question about size_t and strlen () - Arduino Forum

    Jan 8, 2021 · strlen () is very different than sizeof: sizeof is part of the language, it gives you the number of bytes allocated for a variable. strlen () is a function call, part of the many standard …

  6. Sizeof with char* - Programming - Arduino Forum

    May 3, 2021 · I'm using sizeof and strlen. With the char* strings I get back the right number from strlen, but it always kicks back "2" from sizeof. Doing the same with a string - that doesn't use …

  7. char* array get length of string? - Programming - Arduino Forum

    Jun 14, 2016 · size_t l = strlen(myString[0]); On the arduino, you can almost certainly use int instead of size_t. string.h is automagically added.

  8. Count number of char of a string or number - Arduino Forum

    Mar 6, 2010 · "strlen" simply examines each character and if the byte isn't zero, it increments a count. If the character is a zero, it returns the value of the count. So, the string "example" …

  9. cannot convert 'String' to 'const char*' for argument '1' to 'size_t ...

    Jan 12, 2013 · cannot convert 'String' to 'const char*' for argument '1' to 'size_t strlen (cons Projects Programming system January 12, 2013, 5:50pm

  10. strlen and PROGMEM - Programming - Arduino Forum

    Jan 4, 2020 · strlen_P(reinterpret_cast<const char *>(text)) Reinterpret_cast is dangerous, and can only be used in a very limited number of cases: reinterpret_cast conversion - …