/[mailutils]/mailutils/pop3d/extra.c
ViewVC logotype

Diff of /mailutils/pop3d/extra.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by polak, Fri Jan 3 10:46:12 2003 UTC revision 1.19 by gray, Mon Jan 6 14:47:06 2003 UTC
# Line 17  Line 17 
17    
18  #include "pop3d.h"  #include "pop3d.h"
19    
20    static FILE *ifile;
21    static FILE *ofile;
22    
23  /* Takes a string as input and returns either the remainder of the string  /* Takes a string as input and returns either the remainder of the string
24     after the first space, or a zero length string if no space */     after the first space, or a zero length string if no space */
25    
# Line 130  pop3d_abquit (int reason) Line 133  pop3d_abquit (int reason)
133  }  }
134    
135  void  void
136    pop3d_setio (FILE *in, FILE *out)
137    {
138      if (!in || !out)
139        pop3d_abquit (ERR_NO_OFILE);
140    
141      ifile = in;
142      ofile = out;
143    }    
144    
145    void
146    pop3d_flush_output ()
147    {
148      fflush (ofile);
149    }
150    
151    int
152    pop3d_is_master ()
153    {
154      return ofile == NULL;
155    }
156    
157    void
158  pop3d_outf (const char *fmt, ...)  pop3d_outf (const char *fmt, ...)
159  {  {
160    va_list ap;    va_list ap;
# Line 151  pop3d_outf (const char *fmt, ...) Line 176  pop3d_outf (const char *fmt, ...)
176    
177  /* Gets a line of input from the client, caller should free() */  /* Gets a line of input from the client, caller should free() */
178  char *  char *
179  pop3d_readline (char *buffer, int size)  pop3d_readline (char *buffer, size_t size)
180  {  {
181    char *ptr;    char *ptr;
182    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26