1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/learn
chl 2b43731e48 use strcspn to properly overwrite '\n' in fgets returned buffer
check fgets return value
use sizeof (buf) instead of hardcoded value

with help of moritz@ and ray@
"Those seem OK" moritz@ "OK" ray@ "Looks OK" millert@
2007-10-05 14:19:05 +00:00
..
lib the the 2006-03-04 16:18:04 +00:00
src use strcspn to properly overwrite '\n' in fgets returned buffer 2007-10-05 14:19:05 +00:00
README

Learn was originally written by Mike Lesk with some contributions
from Brian Kernighan.  The paper in this directory dates from the
second version of learn, around 1979.

This version of learn has been resurrected from the original V7
source and edited enough that the source compiles and the
lessons can be executed.  We have made no attempt to update the
lessons, nor to fix some of the glaring problems with the code.
Think of it as a historical document, not a polished system.

cd src
make
learn