🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #75059

Re: Why portability?

#75059
From: bob larson
Date: Sun, 11 Nov 1990 22:19
15 lines
1232 bytes
In article <1409@tharr.UUCP> gtoal%ed.ac.uk@nsfnet-relay.ac.uk (Graham Toal) writes:
>However, all I'm suggesting is nothing but standard programming practice,
>such as (for this concrete example):
>
>  sprintf(fname, "%s%c%s%c%s", TMP_PATH, DIR_SEP_CH, file, EXT_SEP_CH, "ext");

This "portable" example may work on some systems, but what about those
that don't put things in the same order?  Much better to use a macro:

  fname = tmpfile(file, "ext");

-- 
Bob Larson (blars)	blarson@usc.edu			usc!blarson
	Hiding differences does not make them go away.  Accepting
	differences makes them unimportant.
Technical Details
Message-ID: <28061@usc>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!dianne.usc.edu!blarson
References: <1409@tharr.UUCP>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1025b4,ade769627710ce93
X-Google-Attributes: gid1025b4,public
X-Google-ArrivalTime: 1990-11-11 14:19:57 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!dianne.usc.edu!blarson
From: blarson@dianne.usc.edu (bob larson)
Newsgroups: gnu.misc.discuss
Subject: Re: Why portability?
Message-ID: <28061@usc>
Date: 11 Nov 90 22:19:57 GMT
References: <1409@tharr.UUCP>
Sender: news@usc
Distribution: gnu
Organization: USC software systems, home of TOADS
Lines: 15
Posted: Sun Nov 11 23:19:57 1990
Nntp-Posting-Host: dianne.usc.edu