www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/23/01:56:40

From: cvn AT interchain DOT nl (Kees van Veen)
Subject: strncat
23 Dec 1997 01:56:40 -0800 :
Message-ID: <349F86DE.3377054C.cygnus.gnu-win32@interchain.nl>
Mime-Version: 1.0
To: Gnu win32 <gnu-win32 AT cygnus DOT com>

Hi,

I have an application using strncat() which relies on NULL termination.
I've looked in the coolview sources at strncat() and saw it is
implemented with strncpy().

I'm not sure about this, but shouldn't strncpy() only return a NULL
terminated string when its argument is NULL terminated before reaching
the length, whereas strncat() always returns a NULL terminated string,
regardless of the input string ?

Kees
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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