Thread: write vs fprintf

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Registered User Annonymous's Avatar
    Join Date
    Apr 2011
    Location
    Jackson, New Jersey, United States
    Posts
    302
    Just to clarify so I do not look like a "complete" moron... which I probably already do. I would never use the write function instead of fprintf when working with file i/o or printing text. Like you said grumpy, that would just be silly. I was actually talking about using fprintf to write buffered strings over a tcp socket. I was just curious to know if using fprintf could be used at all with writing over a socket and if doable, would it be efficient? And would it have an advantage over using the write function. But I will just stick with the write function, as my book uses it for a reason.
    Last edited by Annonymous; 06-09-2011 at 11:42 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Socket question
    By GReaper in forum Networking/Device Communication
    Replies: 7
    Last Post: 06-10-2011, 06:46 AM
  2. Socket Question
    By BENCHMARKMAN in forum C Programming
    Replies: 15
    Last Post: 03-12-2008, 09:57 PM
  3. Socket Question
    By DaveHope in forum Networking/Device Communication
    Replies: 12
    Last Post: 06-21-2005, 04:50 PM
  4. Socket question
    By ~Kyo~ in forum Game Programming
    Replies: 4
    Last Post: 11-04-2004, 06:25 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM