June 25, 2001
Got bitten by 'ctype.h' bugs in 7.6 today: isalnum, isalpha etc fail badly in 7.6 (only for -mn mode, hence posted here.)

The bugs have disappeared in the later versions; this post is to ensure that it has happened with awareness. There is no mention of these bugs in the updates.

;) Why do I still use 7.6? Every new version seems to add a couple of hundred bytes to the generated code, so why not use the lowest stable version? But it looks like time to move to recent version/s....

#include <stdio.h>
#include <ctype.h>

int main(){
    for(int i=0;i<256;i++){
        printf("%d:%c %d\r\n", i, i, isalpha(i));
        }
    return 0;
    }