From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9f43e14136d452b6,start X-Google-Attributes: gid1164f8,public From: vosse@ruls41.fsw.LeidenUniv.nl (Theo Vosse) Subject: C compiler: is this normal??????? Date: 1996/07/08 Message-ID: <4rr492$mtn@highway.leidenuniv.nl>#1/1 X-Deja-AN: 167188324 organization: Leiden University, The Netherlands newsgroups: comp.sys.dec Hi, I wrote in a program: #include if (isalpha(*str)) And the compiler gave this awful warning: /usr/lib/cmplrs/cc/cfe: Warning: dictcomp.c, line 209: No prototype for this call (3.5.4.3) if ((((*(__lc_ctype->core.iswctype)) == 0L) ? (int) (__lc_ctype->_mask[*word] & (0x001)) : (*(__lc_ctype->core.iswctype)) (*word,0x001,__lc_ctype)) ) ^ /usr/lib/cmplrs/cc/cfe: Warning: dictcomp.c, line 211: No prototype for this call (3.5.4.3) char ch = ((int) (((*(__lc_ctype->core.towlower)) == 0L) ? __lc_ctype->_lower[*word] : (*(__lc_ctype->core.towlower)) (*word,__lc_ctype))) ; which looks just as incomprehensible as it is. Now when I execute the program, I get a core dump on the line containing isalpha; it generates a segmentation fault! Back to 'a' <= * str && *str <= 'z' again... Is this normal, or does it have anything to do with the -xtaso_short option? I do not have any documentation with exception of the man pages, since DEC seems to be economical with documentation when you're under a campus license... -- Theo Vosse ---------- Unit for Experimental Psychology University of Leiden The Netherlands