aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/exec/exec.c b/exec/exec.c
index df8c9430236..7f2cc75338b 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -50,7 +50,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
50 50
51/* Define replacements for required string functions. */ 51/* Define replacements for required string functions. */
52 52
53#ifndef HAVE_STPCPY 53#if !defined HAVE_STPCPY || !defined HAVE_DECL_STPCPY
54 54
55/* Copy SRC to DEST, returning the address of the terminating '\0' in 55/* Copy SRC to DEST, returning the address of the terminating '\0' in
56 DEST. */ 56 DEST. */
@@ -72,14 +72,14 @@ rpl_stpcpy (char *dest, const char *src)
72} 72}
73 73
74#define stpcpy rpl_stpcpy 74#define stpcpy rpl_stpcpy
75#endif /* !HAVE_STPCPY */ 75#endif /* !defined HAVE_STPCPY || !defined HAVE_DECL_STPCPY */
76 76
77#ifndef HAVE_STPNCPY 77#if !defined HAVE_STPNCPY || !defined HAVE_DECL_STPNCPY
78 78
79/* Copy no more than N bytes of SRC to DST, returning a pointer past 79/* Copy no more than N bytes of SRC to DST, returning a pointer past
80 the last non-NUL byte written into DST. */ 80 the last non-NUL byte written into DST. */
81 81
82char * 82static char *
83rpl_stpncpy (char *dest, const char *src, size_t n) 83rpl_stpncpy (char *dest, const char *src, size_t n)
84{ 84{
85 char c, *s; 85 char c, *s;
@@ -140,7 +140,7 @@ rpl_stpncpy (char *dest, const char *src, size_t n)
140} 140}
141 141
142#define stpncpy rpl_stpncpy 142#define stpncpy rpl_stpncpy
143#endif /* !HAVE_STPNCPY */ 143#endif /* !defined HAVE_STPNCPY || !defined HAVE_DECL_STPNCPY */
144 144
145 145
146 146