Mail Archives: djgpp/1994/10/30/14:39:04
Hi !
I would like to know what
strcat(a, b);
should do when b happens to be NULL.
I assume it should do nothing at all. Until v1.11m5 it did nothing, but
using v1.12m2 I had to change to
if(b)
strcat(a,b);
to avoid concatenating some funny (nonprintable) characters to a.
Is there any possibility to find out what libc-functions do, when an
argument (pointer) is NULL ?
Tony
============================================================================
Dipl.-Ing. Anton HELM ** Private:
Institut fuer Nachrichtentechnik **
und Hochfrequenztechnik ** Anton HELM
Guszhausstr. 25/389 ** Gratian-Marx Str. 7/27
A-1040 Wien ** A-1110 Wien
AUSTRIA ** AUSTRIA
**
Tel.: +43-1-58801-3520 **
FAX : +43-1-5870583 **
email: Anton DOT Helm AT nt DOT tuwien DOT ac DOT at **
tony AT nt DOT tuwien DOT ac DOT at **
________ __ __ __ __ __ _______ __ __
/__ __/ / / / / / / / / / / / _____/ / \ / /
/ / / / / / _____ / / __ / / / / / /____ / /\ \ / /
/ / / / / / /____/ / / / / / / / / / _____/ / / \ \ / /
/ / / /___/ / / /__/ /__/ / / / / /____ / / \ \/ /
/__/ /_______/ /___________/ /_/ /______/ /_/ \__/
- Raw text -