home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20202 < prev    next >
Encoding:
Text File  |  1993-01-26  |  674 b   |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!portal!dfuller
  3. From: dfuller@portal.hq.videocart.com (Dave Fuller)
  4. Subject: Re: Could someone answer my question....thanks
  5. Message-ID: <C1Fq78.Mts@portal.hq.videocart.com>
  6. Organization: VideOcart Inc.
  7. X-Newsreader: Tin 1.1 PL3
  8. References: <1993Jan26.000105.10930@njitgw.njit.edu>
  9. Date: Tue, 26 Jan 1993 00:18:43 GMT
  10. Lines: 15
  11.  
  12. I assume you want output to go to stdout since you use puts().
  13. I also assume you like the inserted \n that puts gives you.
  14.  
  15. Making such assumptions, you just need to change
  16.  
  17.     puts("%d - %s",i,arg2[i]);
  18.  
  19. to
  20.  
  21.     fprintf(stdout, "%d - %s\n", i, arg2[1]);
  22.  
  23.  
  24. Dave Fuller
  25. dfuller@portal.hq.videocart.com
  26.  
  27.