www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/31/01:55:12

Date: Mon, 31 Oct 94 14:04:46 JST
From: Stephen Turnbull <turnbull AT shako DOT sk DOT tsukuba DOT ac DOT jp>
To: tony AT nt DOT tuwien DOT ac DOT at
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: strcat() ?

Anton.Helm asks:
   Hi !

   I would like to know what 

   strcat(a, b);

   should do when b happens to be NULL.

DJ gives the short answer (in DJGPP, NULL arguments to string
functions are illegal), I give a long rationale elsewhere.

   I assume it should do nothing at all. Until v1.11m5 it did nothing, but

Not true.  I have seen GPFs associated with passing NULL pointers to
string functions ever since I first tried to build imake under DJGPP
1.09 (well, I'm sure it GPFed under 1.10), QEMM (no QDPMI), and
DESQview/X.
    --Steve

- Raw text -


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