X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Faddext.c;h=a075ea3b1eaf8ea60513319d972909315bf462fd;hb=4d2ba1df0fd6135c58ce1dc16e8e28ba510e700e;hp=56d0e4f4af6ad0d5fe5dc5b4975ce2f9e25458bc;hpb=9f8993a05efdff1a7c31be381538a49ccba66c45;p=gnulib.git diff --git a/lib/addext.c b/lib/addext.c index 56d0e4f4a..a075ea3b1 100644 --- a/lib/addext.c +++ b/lib/addext.c @@ -1,5 +1,5 @@ /* addext.c -- add an extension to a file name - Copyright (C) 1990, 1997 Free Software Foundation, Inc. + Copyright (C) 1990, 1997, 1998, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,10 +23,10 @@ #endif #ifndef HAVE_DOS_FILE_NAMES -#define HAVE_DOS_FILE_NAMES 0 +# define HAVE_DOS_FILE_NAMES 0 #endif #ifndef HAVE_LONG_FILE_NAMES -#define HAVE_LONG_FILE_NAMES 0 +# define HAVE_LONG_FILE_NAMES 0 #endif #include @@ -35,7 +35,7 @@ # include #endif #ifndef _POSIX_NAME_MAX -#define _POSIX_NAME_MAX 14 +# define _POSIX_NAME_MAX 14 #endif #include @@ -49,14 +49,13 @@ # include #endif +char *base_name PARAMS ((char const *)); + /* Append to FILENAME the extension EXT, unless the result would be too long, in which case just append the character E. */ void -addext (filename, ext, e) - char *filename; - char const *ext; - int e; +addext (char *filename, char const *ext, int e) { char *s = base_name (filename); size_t slen = strlen (s), extlen = strlen (ext);