public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* strncat
@ 1997-12-23  1:38 Kees van Veen
  1997-12-23 14:03 ` strncat Geoffrey Noer
  0 siblings, 1 reply; 3+ messages in thread
From: Kees van Veen @ 1997-12-23  1:38 UTC (permalink / raw)
  To: Gnu win32

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@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strncat
  1997-12-23  1:38 strncat Kees van Veen
@ 1997-12-23 14:03 ` Geoffrey Noer
  1997-12-29  1:45   ` strncat Axel Riese
  0 siblings, 1 reply; 3+ messages in thread
From: Geoffrey Noer @ 1997-12-23 14:03 UTC (permalink / raw)
  To: Kees van Veen; +Cc: gnu-win32

This has been fixed in more recent sources
-gjn

Kees van Veen wrote:
> 
> I have an application using strncat() which relies on NULL termination.
[...]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: strncat
  1997-12-23 14:03 ` strncat Geoffrey Noer
@ 1997-12-29  1:45   ` Axel Riese
  0 siblings, 0 replies; 3+ messages in thread
From: Axel Riese @ 1997-12-29  1:45 UTC (permalink / raw)
  To: GNU-Win32

> 
> This has been fixed in more recent sources
> -gjn
> 
> Kees van Veen wrote:
> > 
> > I have an application using strncat() which relies on NULL termination.
> [...]
> 
> -- 
> Geoffrey Noer

But not in the coolview version available at Sergey's homepage...

- Axel


===========================================================================
Axel Riese
Research Institute for Symbolic Computation
J. Kepler University Linz
A-4040 Linz                          e-Mail: Axel.Riese@risc.uni-linz.ac.at
Austria             URL: http://www.risc.uni-linz.ac.at/people/ariese/home/
===========================================================================
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1997-12-29  1:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-23  1:38 strncat Kees van Veen
1997-12-23 14:03 ` strncat Geoffrey Noer
1997-12-29  1:45   ` strncat Axel Riese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).