www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/16/06:04:16

Message-Id: <2.2.32.19970216145802.0069b71c@mailhost>
Mime-Version: 1.0
Date: Sun, 16 Feb 1997 12:58:02 -0200
To: abarak AT iil DOT intel DOT com (Amit Barak)
From: Eyal Ben-David <eyalb AT aks DOT com>
Subject: Re: strcmp("anything",NULL) -> error ??
Cc: djgpp AT delorie DOT com

>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) ?
>

Yes. there is no checks for null in strcmp, strlen, etc. This is true
in other compilers also.

- Raw text -


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