Skip to Content
Embedded C Programming
book

Embedded C Programming

by Mark Siegesmund
September 2014
Beginner to intermediate
424 pages
10h 4m
English
Newnes
Content preview from Embedded C Programming
Chapter 12

Strings

Abstract

This chapter explains how to use and manipulate strings in C. The standard C functions are shown copying, comparing, breaking up, and searching strings.

Input and output are shown using both traditional and newer techniques. Conversions of numbers to and from strings are also a part of this chapter. Testing and manipulating characters in strings and the required standard C functions are shown. Constant strings kept in program memory on microcontrollers are described. Multi-byte character sets such as Unicode are briefly introduced.

Examples and exercises are for the popular PIC™ microcontroller manufactured by Microchip.

Keywords

String

strcpy

strlen

strstr

sprintf

unicode

A string is an array of characters ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical C Programming

Practical C Programming

B. M. Harwani

Publisher Resources

ISBN: 9780128013144