X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fstrdup.c;h=3e206c77f94560080eea23f8da0d0bcfb0fb3784;hb=18017df38ebb626f6eed6f339641fd1298c326e7;hp=ebc29f59a4eaaba07636ab4aed3ab8e94707e7a0;hpb=81a21a9a97d8633f6d6231e31fdb6e328d0d3ff2;p=mmh diff --git a/sbr/strdup.c b/sbr/strdup.c index ebc29f5..3e206c7 100644 --- a/sbr/strdup.c +++ b/sbr/strdup.c @@ -1,9 +1,6 @@ - /* * strdup.c -- duplicate a string * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -16,14 +13,14 @@ char * strdup (const char *str) { - char *cp; - size_t len; + char *cp; + size_t len; - if (!str) - return NULL; + if (!str) + return NULL; - len = strlen(str) + 1; - cp = mh_xmalloc (len); - memcpy (cp, str, len); - return cp; + len = strlen(str) + 1; + cp = mh_xmalloc (len); + memcpy (cp, str, len); + return cp; }