www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/30/20:34:23

Date: Sun, 30 Oct 94 16:37:02 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: tony AT nt DOT tuwien DOT ac DOT at
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: strcat() ?

> I would like to know what 
> 
> strcat(a, b);
> 
> should do when b happens to be NULL.

It *should* cause a code fault, stack trace, and immediate exit to
DOS, since you're accessing memory that is off limits.  You won't get
this under DPMI though because of the way DPMI memory is set up.

Passing NULL to strcat is illegal.


- Raw text -


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