Skip to Main Content
Tiny C Projects
book

Tiny C Projects

by Dan Gookin
December 2022
Beginner content levelBeginner
384 pages
10h 44m
English
Manning Publications
Content preview from Tiny C Projects

7 String utilities

It’s often said, and rightly so, that the C programming language lacks a string data type. Such a thing would be nice. It would be easier to guarantee that every string in a program is bona fide and that all string functions work cleanly without flaw. But such claims are untrue. A string in C is a character array, weakly typed, and easy for any C programmer to screw up.

Yes, handy string functions exist in C. A crafty coder can easily cobble together any string function, imitating what’s available in some other, loftier programming language but lacking in C. Still, any creative approach to handling an absent string function in C still must deal with the language’s myopic perception of the string concept. Therefore, some extra ...

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

Five Lines of Code

Five Lines of Code

Christian Clausen
Modern C

Modern C

Jens Gustedt
Effective C

Effective C

Robert C. Seacord
Extreme C

Extreme C

Kamran Amini

Publisher Resources

ISBN: 9781633439825Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link