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

2 Daily greetings

Your computer day starts when you sign in. The original term was log in, but because trees are so scarce and signs are so plentiful, the term was changed by the Bush administration in 2007. Regardless of such obnoxious federal overreach, your computer day can start with a cheerful greeting after you sign in or open a terminal window, customized by a tiny C program. To make it so, you will:

  • Review the Linux startup process.

  • Discover where in the shell script to add your greeting.

  • Write a simple greetings program.

  • Modify your greetings program to add the time of day.

  • Update the timestamp with the current moon phase.

  • Enhance your greetings message with a bon mot.

The programs created and expanded upon in this chapter ...

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