httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Terbush <ra...@zyzzyva.com>
Subject Re: rvputs() and integers
Date Thu, 18 Apr 1996 23:05:53 GMT
>   Is there a reason not to teach rvputs() to deal with integer
>   arguments?
> 
> IMHO, the same energy would be better spent getting rprintf() back...
> 
> rst


*** http_protocol.c.orig	Thu Apr 18 18:01:36 1996
--- http_protocol.c	Thu Apr 18 18:02:30 1996
***************
*** 736,741 ****
--- 736,756 ----
      return c;
  }
  
+ long rprintf (request_rec *r, char *fmt, ...) 
+ {    
+     va_list args;
+     int retval;
+      
+     if (r->connection->aborted) return EOF;
+      
+     va_start (args, fmt);
+     retval = vfprintf (r->connection->client, fmt, args);
+     va_end (args);
+     
+     r->bytes_sent += retval;
+     return retval;
+ }
+  
  int
  rputs(const char *str, request_rec *r)
  {
*** http_protocol.h.orig	Thu Apr 18 18:04:11 1996
--- http_protocol.h	Thu Apr 18 18:04:34 1996
***************
*** 104,112 ****
   * definitions of the macros would get a whole lot hairier.
   */
       
- #if 0
  long rprintf (request_rec *r, char *s, ...);     
- #endif
  int rputc (int c, request_rec *r);     
  extern int rputs(const char *str, request_rec *r);
  extern int rvputs(request_rec *r, ...);
--- 104,110 ----




Mime
View raw message