Kevin Darrah | Text String Tutorial in C Code! Tutorial using Arduino, copy/move/parsing/etc... @Kevindarrah | Uploaded October 2019 | Updated October 2024, 1 day ago.
Just my 2 cents in how to handle and manipulate text strings (Character Arrays) in C code... all shown using Arduino, but is universal on embedded systems coded in C. Very useful stuff in here that can be used in many projects!
It's a doozy, so here are the timestamps:
2:13 Intro, Size, Length, and Null
8:10 Concatenate
10:33 Copy and Move
16:09 Comparing two strings
17:09 Find string in another string
21:06 Parsing a string, like data separated by commas
24:50 Convert string to integers, long, float and back to string
28:00 Pass and return strings with functions
29:25 Parse data from a serial port - real example
THE CODE:
kevindarrah.com/download/arduino_code/STRINGS_FOR_VIDEO.zip
Check out my Tindie store (trigBoard is available) tindie.com/stores/kdcircuits
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
patreon.com/kdarrah
Twitter: twitter.com/KDcircuits
For inquiries or design services:
kdcircuits.com
Just my 2 cents in how to handle and manipulate text strings (Character Arrays) in C code... all shown using Arduino, but is universal on embedded systems coded in C. Very useful stuff in here that can be used in many projects!
It's a doozy, so here are the timestamps:
2:13 Intro, Size, Length, and Null
8:10 Concatenate
10:33 Copy and Move
16:09 Comparing two strings
17:09 Find string in another string
21:06 Parsing a string, like data separated by commas
24:50 Convert string to integers, long, float and back to string
28:00 Pass and return strings with functions
29:25 Parse data from a serial port - real example
THE CODE:
kevindarrah.com/download/arduino_code/STRINGS_FOR_VIDEO.zip
Check out my Tindie store (trigBoard is available) tindie.com/stores/kdcircuits
Thanks to all the Patrons for dropping a few bucks in the tip jar to help make these videos happen!
patreon.com/kdarrah
Twitter: twitter.com/KDcircuits
For inquiries or design services:
kdcircuits.com