TIP: Click on subject to list as thread! ANSI
echo: fmail_help
to: Nicholas Boel
from: mark lewis
date: 2016-11-24 10:07:50
subject: Fmail, HPT and FastEcho

22 Nov 16 22:01, you wrote to me:

 WV>>> If they are both linux gnu c, what can be different between the
 WV>>> two?

 ml>> path separators and drive letters...

 NB> He's referring to an X86 system running Linux, and an ARM device also
 NB> running Linux. There is no difference with path separators and drive
 NB> letters, but binaries can not be swapped between the two systems.

yes, i know... but winwhatever does have drive letters and the path
separators lean the other way... so true cross-platform code takes these
differences into account no matter which compiler is used... generally
speaking it comes down to using predefined variables...

eg:
  configpath := CURDRIVE + PATHSEP + currentdir + PATHSEP + "conf";
  configfile := configpath + "foo.ini";

in this example, CURDRIVE would be defined as a drive letter with a colon
(":") or an empty string... PATHSEP would be defined as
"\" or "/" depending on the current OS... yeah, it is
longer to type CURDRIVE and PATHSEP everywhere you need them but it is the
best way to do cross platform coding... at least for file access...
permissions and attributes may take other dances to learn...

)\/(ark

Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin'
it wrong...
... Too much is always better than not enough.
---
* Origin: (1:3634/12.73)
SEEN-BY: 109/500 116/116 120/544 123/5 52 111 140 500 789 1970 124/5013 5014
SEEN-BY: 135/300 138/146 140/1 14 153/757 7715 154/10 203/0 221/0 1 6 360 361
SEEN-BY: 226/600 229/426 230/0 249/303 261/38 266/404 512 275/100 280/464 5003
SEEN-BY: 280/5006 5555 288/34 292/789 854 310/31 320/119 219 322/759 342/11 77
SEEN-BY: 423/81 633/0 267 280 281 412 640/384 712/848 770/1 2320/100 3634/12
SEEN-BY: 3634/15 22 24 27 50 5019/40
@PATH: 3634/12 123/500 140/1 221/0 1 203/0 280/5555 712/848 633/280 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™.