Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: vosse@ruls41.fsw.LeidenUniv.nl (Theo Vosse)
Subject: C compiler: is this normal???????
Date: 1996/07/08	[thread overview]
Message-ID: <4rr492$mtn@highway.leidenuniv.nl> (raw)


Hi,

I wrote in a program:

#include <ctype.h>

    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



             reply	other threads:[~1996-07-08  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-08  4:00 Theo Vosse [this message]
1996-07-16  4:00 ` C compiler: is this normal??????? Craig Neth
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox