codybartfast / knr

Exercises from The C Programming Language
MIT License
9 stars 4 forks source link

Make value of OK explicit #3

Closed codybartfast closed 4 years ago

codybartfast commented 4 years ago

Since these values are being compared directly to 0 it might be a good idea to make it explicit like this enum { OK=0, ERROR };. There is also stdbool.h which defines true and false if that appeals.

Originally posted by @klampworks in https://github.com/codybartfast/knr/pull/2

codybartfast commented 4 years ago

Done