summaryrefslogtreecommitdiff
path: root/firmware/common/strcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/strcpy.c')
-rw-r--r--firmware/common/strcpy.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/firmware/common/strcpy.c b/firmware/common/strcpy.c
index 0580d88cb8..077ae73cc6 100644
--- a/firmware/common/strcpy.c
+++ b/firmware/common/strcpy.c
@@ -1,27 +1,27 @@
1/* 1/*
2FUNCTION 2FUNCTION
3 <<strcpy>>---copy string 3 <<strcpy>>---copy string
4 4
5INDEX 5INDEX
6 strcpy 6 strcpy
7 7
8ANSI_SYNOPSIS 8ANSI_SYNOPSIS
9 #include <string.h> 9 #include <string.h>
10 char *strcpy(char *<[dst]>, const char *<[src]>); 10 char *strcpy(char *<[dst]>, const char *<[src]>);
11 11
12TRAD_SYNOPSIS 12TRAD_SYNOPSIS
13 #include <string.h> 13 #include <string.h>
14 char *strcpy(<[dst]>, <[src]>) 14 char *strcpy(<[dst]>, <[src]>)
15 char *<[dst]>; 15 char *<[dst]>;
16 char *<[src]>; 16 char *<[src]>;
17 17
18DESCRIPTION 18DESCRIPTION
19 <<strcpy>> copies the string pointed to by <[src]> 19 <<strcpy>> copies the string pointed to by <[src]>
20 (including the terminating null character) to the array 20 (including the terminating null character) to the array
21 pointed to by <[dst]>. 21 pointed to by <[dst]>.
22 22
23RETURNS 23RETURNS
24 This function returns the initial value of <[dst]>. 24 This function returns the initial value of <[dst]>.
25 25
26PORTABILITY 26PORTABILITY
27<<strcpy>> is ANSI C. 27<<strcpy>> is ANSI C.
@@ -29,7 +29,7 @@ PORTABILITY
29<<strcpy>> requires no supporting OS subroutines. 29<<strcpy>> requires no supporting OS subroutines.
30 30
31QUICKREF 31QUICKREF
32 strcpy ansi pure 32 strcpy ansi pure
33*/ 33*/
34 34
35#include <string.h> 35#include <string.h>
@@ -59,8 +59,8 @@ QUICKREF
59 59
60char* 60char*
61_DEFUN (strcpy, (dst0, src0), 61_DEFUN (strcpy, (dst0, src0),
62 char *dst0 _AND 62 char *dst0 _AND
63 _CONST char *src0) 63 _CONST char *src0)
64{ 64{
65#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) 65#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
66 char *s = dst0; 66 char *s = dst0;