🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #2041

How do you guys write such portable code?

#2041
From: Edmund Burnette
Date: Wed, 03 Dec 1986 03:41
17 lines
1284 bytes
Recent comments to the contrary notwithstanding, I have had pretty good
luck taking source right from comp.sources (or wherever), unnsharing it
and compiling it on a couple of systems at work (HP and APOLLO, fyi).
My question is, how do you do it?  Is the author just familiar with all
the sytems the code will be ported to?  Or am I just lucky?  Is there any
written documentation (oh no!) on how to write portable code?  I am not
talking so much about making sure you don't make int/ptr assumptions, etc.,
as all the operating system calls, I suppose.  Thanks.

         -- Edmund
--
 |_o_o|\\   Edmund Burnette
 |. o.| ||  mcnc!rti-sel!sas!burnette
 | .  | ||
 | o  | ||  member of...
 |  . |//   The Software Distillery
 ======     BBS: (919)-471-6436
Technical Details
Message-ID: <236@sas.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!mcnc!rti-sel!sas!burnette

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!mcnc!rti-sel!sas!burnette
From: burnette@sas.UUCP (Edmund Burnette)
Newsgroups: comp.sources.d
Subject: How do you guys write such portable code?
Message-ID: <236@sas.UUCP>
Date: Tue, 2-Dec-86 22:41:51 EST
Article-I.D.: sas.236
Posted: Tue Dec  2 22:41:51 1986
Date-Received: Thu, 4-Dec-86 06:03:36 EST
Distribution: net
Organization: SAS Institute Inc. Cary, NC
Lines: 17