:: Re: [DNG] Learning C (books)
Etusivu
Poista viesti
Vastaa
Lähettäjä: kc-devuan
Päiväys:  
Vastaanottaja: dng
Aihe: 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