modified:   ndigit.c