Loading ...
Sorry, an error occurred while loading the content.

Re: [hackers-il] Passing all multiple arguments for a function in C

Expand Messages
  • Adam Morrison
    ... Check out vfprintf(3).
    Message 1 of 2 , Dec 16, 2007
      On Sun, Dec 16, 2007 at 08:50:58AM -0000, leiboviche wrote:

      > I'm facing a situation that probably occurs to writers of most
      > applications with log file capabilities.
      > I wish to have a function log() which only redirects it's input to an
      > already opened file:
      > int log(char *fmt,...) {
      > /* I want to call fprintf(logfile,fmt,...);

      Check out vfprintf(3).
    Your message has been successfully submitted and would be delivered to recipients shortly.