diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-01-19 12:41:54 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-01-19 12:41:54 +0300 |
commit | 17133a85de3326ec7c63f800581984392ddd276f (patch) | |
tree | 0c95de462a564355495f3c5b376f16847cc253d5 /winsup/cygwin/exec.cc | |
parent | 808aae3d13971fd7ccb474caff9bd89a9569795b (diff) |
* exec.cc (strccpy): Move function from here...
* strfuncs.cc (strccpy): ...to here.
* string.h (strccpy): Declare.
* winsup.h (strccpy): Drop declaration.
Diffstat (limited to 'winsup/cygwin/exec.cc')
-rw-r--r-- | winsup/cygwin/exec.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/winsup/cygwin/exec.cc b/winsup/cygwin/exec.cc index d4462b534..327e86a09 100644 --- a/winsup/cygwin/exec.cc +++ b/winsup/cygwin/exec.cc @@ -68,21 +68,6 @@ sexecve_is_bad () return 0; } -/* Copy string, until c or <nul> is encountered. - NUL-terminate the destination string (s1). - Return pointer to terminating byte in dst string. */ - -char * __stdcall -strccpy (char *s1, const char **s2, char c) -{ - while (**s2 && **s2 != c) - *s1++ = *((*s2)++); - *s1 = 0; - - MALLOC_CHECK; - return s1; -} - extern "C" int execvp (const char *path, char * const *argv) { |