1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>STD_CopyLString</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">STD_CopyLString<img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16<dl> 17 <dd><PRE><CODE>#include <nitro/std.h> 18 19int STD_CopyLString( char* destp, const char* srcp, int siz );</CODE></PRE> 20 <PRE><CODE>int STD_StrLCpy( char* destp, const char* srcp, int siz ); 21</CODE></PRE></dd> 22</dl> 23 24<h2>Arguments</h2> 25<table border="1" width="100%"> 26 <tbody> 27 <TR> 28<TD width="200"><SPAN class="argument">destp</SPAN></TD> 29<TD width="800">Pointer to a copy destination.</TD> 30 </TR> 31 <TR> 32<TD width="200"><SPAN class="argument">srcp</SPAN></TD> 33<TD width="800">Pointer to the copy source.</TD> 34 </TR> 35 <TR> 36<TD width="200"><SPAN class="argument">siz</SPAN></TD> 37<TD width="800">Size of the write buffer of the copy destination.</TD> 38 </TR> 39 </tbody> 40</table> 41 42<h2>Return Values</h2> 43<p> 44Returns the copy target string pointer. 45</p> 46 47<H2>Description</H2> 48<P> 49Copies a maximum of (<SPAN class="argument">siz</SPAN>-1) characters from the <SPAN class="argument">srcp</SPAN> string to the <SPAN class="argument">destp</SPAN> string. It carries out the same operation as the C standard function <CODE>strlcpy</CODE>. 50<P>The <CODE>STD_StrLCpy</CODE> function is defined as another name for <CODE>STD_CopyLString</CODE>.</P> 51 52<h2>See Also</h2> 53<p><A href="STD_CopyString.html"><CODE>STD_CopyString</CODE></A><BR> <A href="STD_CopyLStringZeroFill.html"><CODE>STD_CopyLStringZeroFill</CODE></A></p> 54 55<H2>Revision History</H2> 56<P> 572006/06/06 Changed function specifications to conform to the <CODE>strlcpy</CODE> function.<BR> 2006/05/15 Revised <B>Description</B>.<BR> 2005/10/5 Initial version.<BR> 58</P> 59<hr><p>CONFIDENTIAL</p></body> 60</html> 61