:: Re: [DNG] Learning C (books)
Top Page
Delete this message
Reply to this message
Author: kc-devuan
Date:  
To: dng
Subject: Re: [DNG] Learning C (books)
I learnt from K&R among others and like S Litt I dislike things like convoluted one liners. One was supposedly by Dennis Ritchie if I recall correctly which took writing it into multiple lines to understand it.

> $ man strcpy


Have you heard of strlcpy?

https://www.openbsd.org/papers/strlcpy-paper.pdf
https://man.openbsd.org/strlcpy

regards, kc