www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/14/12:30:32

Message-Id: <199702141710.MAA01007@delorie.com>
From: MTEEL DOT DTECHS AT dtechs DOT com (Mark Teel)
Date: Fri, 14 Feb 1997 11:07 EST
To: owner-djgpp-list AT delorie DOT com
Cc: djgpp AT delorie DOT com
Subject: fwd: strcmp("anything",NULL) -> error ??

======== Original Message ========
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) ?

-- 
 amit barak
 intel israel (74)
 voice: 972-4-865-6010
 email: abarak AT iil DOT intel DOT com
======== Fwd by: Mark Teel ========
Absolutely!  This is true for all string library routines (and many others
as well).

MST

- Raw text -


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