:: Re: [DNG] Learning C (books)
Góra strony
Delete this message
Reply to this message
Autor: kc-devuan
Data:  
Dla: dng
Temat: 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