This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Broken basename()
- To: glibc-linux@ricardo.ecn.wfu.edu
- Subject: Broken basename()
- From: Jean Pierre Belanger <jpbelanger@originalsim.com>
- Date: Mon, 31 May 1999 17:50:44 -0400
- CC: llam@originalsim.com
- Organization: OriginalSim
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
Hi!
I have glibc-devel-2.1.1-6 freshly installed from RedHat 6.0 CD.
When doing the following, basename no longer returns the right value...
#include <libgen.h>
#include <stdio.h>
int main()
{
char *path = "/jp/include/basename.Text";
printf("basename = %s\n", basename(path));
// will output "/basename.Text" instead of "basename.Text"
}
--
Jean-Pierre Belanger, OSim Product Development Manager
OriginalSim - Framework for building distributed simulations.
Tel: 514-766-8868 Ex:28, Fax: 514-766-8861
mailto:jpbelanger@originalsim.com, http://www.originalsim.com