cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/14:42:45

From: fiore AT cs DOT buffalo DOT edu (Joseph N Fiore)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: strcmp("anything",NULL) -> error ??
Date: 14 Feb 1997 17:27:03 GMT
Organization: University at Buffalo
Lines: 15
Message-ID: <5e2797$24j@prometheus.acsu.buffalo.edu>
References: <5e18hb$tb8 AT www DOT iil DOT intel DOT com>
NNTP-Posting-Host: armstrong.cs.buffalo.edu
NNTP-Posting-User: fiore
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Amit Barak (abarak AT iil DOT intel DOT com) wrote:
: it seems that calling 'strcmp(..)' with one of its arguments equals
: a null pointer causes run-time error (Page fault)
: is this normal behavior (compared to other compilers) ?

It is with:
$ gcc -v
Reading specs from /util/lib/gcc-lib/sparc-sun-solaris2/2.7.2.1/specs
gcc version 2.7.2.1

And thanks for reminding me.  I knew there was a way to segfault w/ strcmp
and I'm trying to track a down problem in a large project.
-- 
Joe <fiore AT cs DOT buffalo DOT edu>
<http://www.cs.buffalo.edu/~fiore>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019