]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - string/basename.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / string / basename.c
index 98bf96c3e2cf5dab501d954544c580666f809d27..0f379680b7888656db544bd6e6392b5a54df16ed 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the name-within-directory of a file name.
-   Copyright (C) 1996-2014 Free Software Foundation, Inc.
+   Copyright (C) 1996-2017 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #include <string.h>
 
 char *
-basename (const char *filename)
+__basename (const char *filename)
 {
   char *p = strrchr (filename, '/');
   return p ? p + 1 : (char *) filename;
 }
-libc_hidden_def (basename)
+libc_hidden_def (__basename)
+weak_alias (__basename, basename)
+libc_hidden_weak (basename)