www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/03/30/10:29:18

Date: Mon, 30 Mar 92 09:17 EST
To: djgpp AT sun DOT soe DOT clarkson DOT edu
From: Jose DOT Hernandez AT adi_email DOT analog DOT com
Subject: Returned mail: Cannot send messa

 
 
Status: O

-------------( Forwarded letter follows )-----------------------
 
Date: Saturday, 28 March 1992  0:03am
Date: Fri, 27 Mar 92 23:38:01 EST
From: Mailer-Daemon AT nwd2sun1 DOT analog DOT com (Mail Delivery Subsystem)
Subject: Returned mail: Cannot send message for 3 hours
To: Mailer-Daemon
 
   ----- Transcript of session follows -----
 
   ----- Unsent message follows -----
Return-Path: <Mailer-Daemon>
Received: by nwd2sun1.analog.com (4.1/SMI-4.1)
 id AF09889; Fri, 27 Mar 92 19:54:47 EST
Date: Fri, 27 Mar 92 19:54:47 EST
From: Mailer-Daemon (Mail Delivery Subsystem)
Subject: Returned mail: Cannot send message for 3 hours
Message-Id: <9203280054 DOT AF09889 AT nwd2sun1 DOT analog DOT com>
To: <djgpp-request AT sun DOT soe DOT clarkson DOT edu>
 
   ----- Transcript of session follows -----
421 spd.analog.com: Host oceanus.spd.analog.com is down
 
   ----- Unsent message follows -----
Received: from adi.analog.com by nwd2sun1.analog.com (4.1/SMI-4.1)
 id AA09370; Fri, 27 Mar 92 15:59:31 EST
Received: from barnacle.erc.clarkson.edu by cs.umb.edu (5.65c/1.34)
 id AA04281; Fri, 27 Mar 1992 15:52:30 -0500
Received: from sun.soe.clarkson.edu by barnacle.erc.clarkson.edu with SMTP (PP)
          id <26383-0 AT barnacle DOT erc DOT clarkson DOT edu>;
          Fri, 27 Mar 1992 15:26:48 -0500
Received: by sun.soe.clarkson.edu (4.1/SMI-4.1) id AA11677;
          Fri, 27 Mar 92 14:52:21 EST
Return-Path: <99clifto AT lab DOT cc DOT wmich DOT edu>
Received: from lab.cc.wmich.edu (grog.lab.cc.wmich.edu)
          by sun.soe.clarkson.edu (4.1/SMI-4.1) id AA11672;
          Fri, 27 Mar 92 14:52:17 EST
Received: from n09.lab.cc.wmich.edu by lab.cc.wmich.edu (4.1/SMI-4.1)
          id AA18076; Fri, 27 Mar 92 14:50:05 EST
Message-Id: <9203271950 DOT AA18076 AT lab DOT cc DOT wmich DOT edu>
Received: by n09.lab.cc.wmich.edu (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
          id AA00545; Fri, 27 Mar 92 14:46:18 EST
Date: Fri, 27 Mar 92 14:46:18 EST
From: 99clifto AT lab DOT cc DOT wmich DOT edu
Original-Received: by NeXT Mailer (1.63)
Pp-Warning: Illegal Received field on preceding line
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: globbing and shells
 
Assuming you wanted to distribute a program, the only drawback of adding the
globbing
routines to your program is the extra size overhead. In other words, if the
shell expands
wildcards then calls to glob produce nothing--all files are single strings in
argv[?]...
Of course you could also test for various shells and decide on a technique at
run-time,
but this introduces more overhead and complicates matters greatly.
 
Why not  create a library of routines that address the short comings of working
in the dos
environment, add a standard include file to prototype/define the routines and
link to it
at compile time?
 
 
#include <stdio.h>
#include <stdlib.h>
#include <mylib.h>
 
void
main(argc, argv)
 int argc;
 char **argv;
{
 FILE *infile, *outfile;
 char **globv;
 char progname[8] = basename(argv[0]);
 
 ................... getopts stuff ....................
 if (globv = glob_filenname(argv[1].................
 [ rest of your program here ]
}
 
>gcc -O myprog.c -o myprog -lmy
 
 -d.clifton [99clifto AT lab DOT cc DOT wmich DOT edu]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019