From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/FUNCTIONS/strncpy.html | 76 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 reference/C/FUNCTIONS/strncpy.html (limited to 'reference/C/FUNCTIONS/strncpy.html') diff --git a/reference/C/FUNCTIONS/strncpy.html b/reference/C/FUNCTIONS/strncpy.html new file mode 100644 index 0000000..19c2ae9 --- /dev/null +++ b/reference/C/FUNCTIONS/strncpy.html @@ -0,0 +1,76 @@ +strncpy function + + + + + + +
+
+

strncpy function

+
+
+

+strncpy copies 'n' bytes from one string to another.

+ +

+Library:   string.h
+
+Prototype: char strncpy(char s1, const char *s2, size_t n);
+
+Syntax:	   size_t n;
+	   char string1[20]="red dwarf";
+	   char string2[20]=";
+           strncpy(string2, string1, 4);
+
+ +
+

Notes

+ +
+ +example program.

+ +An alternative method using 'sprintf'...

+ + +


+

See also:

+ + + +

+ +


+

+

+ + + + +
+ Top + + Master Index + + Keywords + + Functions +
+
+

+


+
Martin Leslie +

+ + -- cgit v1.2.3-54-g00ecf