This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Broken basename()


>>In article <19990601105349.A25181@maybe.org>, Dale Harris <rodmur@maybe.org> writes:

> If you are just stripping the path, you could just do something like:

> progname = (tmpptr = strrchr(argv[0],'/')) ? tmpptr + 1 : argv[0];

No, please no.  I have trouble right now with sources like that which
have to be ported to NT.  Every single occurrence has one forward
version and one backward version (pun intended!).  That's the reason
for using well-defined functions, to avoid that kind of system
dependency.

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com
  PGP = 91 B3 94 7C E9 E8 76 2D   E1 63 51 AA A0 48 89 2F  ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]