TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: All
from: Joseph Larsen
date: 2016-07-19 11:54:36
subject: HPT (DOS) or BinkP (Linux)?

Hi all,

I have a question. Would it be easier to recode HPT (DOS) to use lower
case bundle filenames, or recode BinkP (Linux) to use upper case filenames
for outgoing bundles? I'm thinking the latter. As it seems that any file
created in DOS will always be uppercase.

BinkP code below...

--//-- begin -----

#if 0
 if (flags & DP_F_UP) caps = 0; /* Should characters be upper case? */
endif

And...

  /* Convert integer part */
 do {
   iconvert[iplace++] =
     (caps? "0123456789ABCDEF":"0123456789abcdef")[intpart % 10];
   intpart = (intpart / 10);
 } while(intpart && (iplace < 20));
 if (iplace == 20) iplace--;
 iconvert[iplace] = 0;


Also...

  /* Convert fractional part */
 do {
   fconvert[fplace++] =
     (caps?
"0123456789ABCDEF":"0123456789abcdef")[fracpart % 10];
   fracpart = (fracpart / 10);
 } while(fracpart && (fplace < 20));
 if (fplace == 20) fplace--;
 fconvert[fplace] = 0;

Again...

static void fmtint (char *buffer, size_t *currlen, size_t maxlen,
                   int64_t value, int base, int min, int max, int flags)

 int signvalue = 0;
 uint64_t uvalue;
 char convert[20];
 int place = 0;
 int spadlen = 0; /* amount to space pad */
 int zpadlen = 0; /* amount to zero pad */
 int caps = 0;

--//--- end snippits ----


I'm not exactly sure how to go about this.. Changing the "0"'s to
"1"'s
didn't seem to work.


Thanks,

|09ignatius |07(|15cia|07)

--- DayDream BBS/UNIX (Linux) 2.15a
* Origin: catch22bbs.com >>> >> > (1:340/800)
SEEN-BY: 3/50 103/705 123/500 154/0 10 20 203/0 221/6 227/51 201 230/0
SEEN-BY: 240/1661 5832 249/303 261/38 280/464 5003 292/854 340/800 423/120
SEEN-BY: 633/267 280 640/384 712/550 848 770/1
@PATH: 340/800 154/10 280/464 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.