Arduino/CheatSheet: Difference between revisions
< Arduino
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
= Chars and Strings= | = Chars and Strings= | ||
== Variables == | |||
Naming: myPins | |||
== Char Array Strings == | == Char Array Strings == | ||
* strchr() - locate char | * strchr() - locate char |
Revision as of 16:14, 25 January 2021
Chars and Strings
Variables
Naming: myPins
Char Array Strings
- strchr() - locate char
- strstr() - locate substring
- strtok() - split string into substrings, based on a separator character
- strlen() - length of a string
- strcmp() - compare two strings
- strcpy() - copy string
- strcar() - concatenate strings
- atoi() - convert string to an int