Quote Originally Posted by felixthunder View Post
Yes, I am using old books, most from Kernighan and Rob Pike.
I wrote this program for practicing with stacks, but I have another version that uses arrays: https://pastebin.com/raw/mmi0CCZR

I am also learning about BSD extensions, such as err(3).
In addition to my comments above, rather than using an old book, I would recommend one of the following up to date books on the C Programming Language:

C Programming, A Modern Approach
Author: K. N. King

C Primer Plus, 6th Edition
Stephen Prata

C How to Program, 8/e
Deitel & Deitel

Choose one, study cover to cover, and do all the exercises at the end of each chapter!
I am also learning about BSD extensions, such as err(3).
I also would recommend sticking to Standard C, and avoid any Non-Standard extensions.