diff options
Diffstat (limited to 'firmware/common/strcpy.c')
-rw-r--r-- | firmware/common/strcpy.c | 30 |
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 | /* |
2 | FUNCTION | 2 | FUNCTION |
3 | <<strcpy>>---copy string | 3 | <<strcpy>>---copy string |
4 | 4 | ||
5 | INDEX | 5 | INDEX |
6 | strcpy | 6 | strcpy |
7 | 7 | ||
8 | ANSI_SYNOPSIS | 8 | ANSI_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 | ||
12 | TRAD_SYNOPSIS | 12 | TRAD_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 | ||
18 | DESCRIPTION | 18 | DESCRIPTION |
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 | ||
23 | RETURNS | 23 | RETURNS |
24 | This function returns the initial value of <[dst]>. | 24 | This function returns the initial value of <[dst]>. |
25 | 25 | ||
26 | PORTABILITY | 26 | PORTABILITY |
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 | ||
31 | QUICKREF | 31 | QUICKREF |
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 | ||
60 | char* | 60 | char* |
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; |