:: Re: [DNG] Learning C (books)
トップ ページ
このメッセージを削除
このメッセージに返信
著者: kc-devuan
日付:  
To: dng
題目: 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