home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / c / 20345 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  30 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!decwrl!csus.edu!netcom.com!pdh
  3. From: pdh@netcom.com (Phil Howard )
  4. Subject: Re: How do you read binary data piped into stdin?
  5. Message-ID: <1993Jan28.110651.12468@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <N0gRXB1w165w@eastwind.mcds.com> <1993Jan26.012308.19664@netcom.com> <930126.062840.1v1.rusnews.w165w@cybrspc.uucp>
  8. Date: Thu, 28 Jan 1993 11:06:51 GMT
  9. Lines: 19
  10.  
  11. roy%cybrspc@cs.umn.edu (roy) writes:
  12.  
  13. >pdh@netcom.com (Phil Howard ) writes:
  14. >
  15. >> Unfortunately, standard C lacks a facility to change the mode of an open
  16. >> file.  This would be what you need, and I have had situations where I need
  17. >> this as well.
  18. >
  19. >What about setmode()?  My FM says the call is available on Unix systems.
  20. >Is the FM lying to me?  (I s'pose it wouldn't be the first time)
  21.  
  22. Your machine may have setmode().  In fact many machines might; I don't know
  23. for sure.  But ANSI C does not, so it is not as portable as C.  Of course
  24. people could use it where it exists and avodi having to do other things.
  25. -- 
  26. /************************************************************************\
  27. | Phil Howard,  pdh@netcom.com,  KA9WGN    Spell protection?  "1(911)A1" |
  28. | "It's not broken... it's just functionally challenged" --Phil and Pete |
  29. \************************************************************************/
  30.