1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/ST) - STcopyNMax</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>STcopyNMax</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int STcopyNMax (const char Si[], char So[], int N, int Maxchar)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Copy N characters characters to a string
</DL>
<H4>Description</H4>
This routine is used to copy min(N, strlen(Si)) characters from the input
input string to the output string. If min(N, strlen(Si) is greater than
Maxchar, a string is truncated at that point and a warning message is
printed.
<H4>Parameters</H4>
<P>
<PRE>
Number of characters in the output string
</PRE>
<DL>
<DT>
-> const char Si[]
<DD>
Input character string
<DT>
<- char So[]
<DD>
Output character string. This string is always null terminated, with
at most Maxchar characters not including the terminating null character.
<DT>
-> int N
<DD>
Number of characters to be transferred
<DT>
-> int Maxchar
<DD>
Maximum number of characters (not including the terminating null
character) to be placed in So.
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1998
/ Revision 1.18 1998/06/16
<H4>See Also</H4>
<A HREF="STcatMax.html">STcatMax</A>,
<A HREF="STcopyMax.html">STcopyMax</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|