diff options
author | Timo Schulz <[email protected]> | 2004-11-24 07:30:08 +0000 |
---|---|---|
committer | Timo Schulz <[email protected]> | 2004-11-24 07:30:08 +0000 |
commit | c36b96808391edf9211b1c60b00825f31be7a93c (patch) | |
tree | a0b446f425c02eea2d44dad2cbf461ff76f9ad11 /src/stpcpy.c | |
parent | * assuan-socket-connect.c (LOG): Fixed macro to print not only the (diff) | |
download | libassuan-c36b96808391edf9211b1c60b00825f31be7a93c.tar.gz libassuan-c36b96808391edf9211b1c60b00825f31be7a93c.zip |
2004-11-23 Timo Schulz <[email protected]>
* assuan-socket.c (_assuan_sock_connect): Get local port from
the sun_path[] file.
(_assuan_sock_bind): Write local port to the sun_path[] file.
* assuan-socket-connect.c (assuan_socket_connect): Use DIRSEP_C
for a better portability.
(assuan-defs.h): Define DIRSEP_C.
2004-11-22 Timo Schulz <[email protected]>
* assuan-io.c (_assuan_simple_read, _assuan_simple_write): W32
support.
* assuan-socket.c (_assuan_close): New.
(_assuan_sock_new): New.
(_assuan_sock_bind): New.
Diffstat (limited to 'src/stpcpy.c')
-rw-r--r-- | src/stpcpy.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/stpcpy.c b/src/stpcpy.c new file mode 100644 index 0000000..1ff48ac --- /dev/null +++ b/src/stpcpy.c @@ -0,0 +1,33 @@ +/* stpcpy.c - Replacement for stpcpy + * Copyright (C) 2002 Free Software Foundation, Inc. + * + * This file is part of GnuPG. + * + * GnuPG is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * GnuPG is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + */ + +char * +stpcpy (char *dest, const char *src) +{ + register char *d = dest; + register const char *s = src; + + do + *d++ = *s; + while (*s++ != '\0'); + + return d - 1; +} + |