Arduino/CheatSheet: Difference between revisions
< Arduino
(Die Seite wurde neu angelegt: „== Char Array Strings == * strchr() - locate char * strstr() - locate substring * strtok() - split string into substrings, based on a separator character *…“) |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Chars and Strings= | |||
== Variables == | |||
Naming: myPins | |||
== Char Array Strings == | == Char Array Strings == | ||
* strchr() - locate char | * strchr() - locate char | ||
Line 9: | Line 14: | ||
* strcpy() - copy string | * strcpy() - copy string | ||
* | * strcat() - concatenate strings | ||
* atoi() - convert string to an int | * atoi() - convert string to an int | ||
http://www.nongnu.org/avr-libc/user-manual/group__avr__string.html#ga6a441da9211eb85881d99c60b1003552 | http://www.nongnu.org/avr-libc/user-manual/group__avr__string.html#ga6a441da9211eb85881d99c60b1003552 | ||
[[Category:Programming]] |
Latest revision as of 15:14, 28 September 2024
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
- strcat() - concatenate strings
- atoi() - convert string to an int