delorie.com/archives/browse.cgi | search |
From: | "Graham Reeds" <grahamr AT ntlworld DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
References: | <u0pX6.32176$9t5 DOT 2935940 AT news6-win DOT server DOT ntlworld DOT com> <2vktit40avllhv0f8p788kura4pshfe5d9 AT 4ax DOT com> |
Subject: | Re: Extracting a directory name. |
Lines: | 16 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Message-ID: | <DFSX6.4039$6q2.443690@news6-win.server.ntlworld.com> |
Date: | Wed, 20 Jun 2001 02:04:06 +0100 |
NNTP-Posting-Host: | 62.254.80.23 |
X-Complaints-To: | abuse AT ntlworld DOT com |
X-Trace: | news6-win.server.ntlworld.com 992999139 62.254.80.23 (Wed, 20 Jun 2001 02:05:39 BST) |
NNTP-Posting-Date: | Wed, 20 Jun 2001 02:05:39 BST |
Organization: | ntlworld News Service |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> ...with this: > > BaseDir[0] = '\0'; > strncat(BaseDir, Directory, bytestocopy); That's pretty cool. I never thought of that. > The use of "%li" happens to work on many implementations but is not > guaranteed to be portable and will break hideously on some. It was just a way of getting it to display how ever many it needed for human (me) verification. It's been taken out now. Thanks, Graham Reeds
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |