TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: THOMAS MAEDER
from: ROBERT LA FERTE
date: 1998-02-05 02:06:00
subject: Builder C++

TM> Note that strncpy in general does *not* zero-terminate its target.
Well, I guess I forgot to add "-1" at the end of the sizeof() call....
As for strncpy, it does only if the target string is larger than the
source string - if maxlen is reached or exceeded, you are absolutely
right.  Thanks for the reminder!
Bob
--- Platinum Xpress/Win/Wildcat5! v2.0
---------------
* Origin: Fido Backbone Mail & More! telnet://docsplace.dyn.ml (1:3603/140)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.