httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@locus.apache.org
Subject cvs commit: apache-devsite/apidoc api.list dict-ap_psprintf.html
Date Wed, 14 Jun 2000 10:05:53 GMT
coar        00/06/14 03:05:53

  Modified:    apidoc   api.list dict-ap_psprintf.html
  Log:
  	Fix the return-code information about ap_psprintf, and
  	make the example a little simpler.  From a discussion on
  	the apache-modules list.
  
  Revision  Changes    Path
  1.12      +2 -2      apache-devsite/apidoc/api.list
  
  Index: api.list
  ===================================================================
  RCS file: /home/cvs/apache-devsite/apidoc/api.list,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- api.list	1999/12/08 14:54:31	1.11
  +++ api.list	2000/06/14 10:05:51	1.12
  @@ -1399,8 +1399,8 @@
       |dict-$*.html
   R|ap_psprintf\
       |char *$*(struct pool *p, const char *fmt, ...);\
  -    |pool *p;\nchar **real_code;\nchar base = 'x';\nint modifier = 0; \n \
  -*real_code = $*(p, "%c%d", base, modifier);\
  +    |pool *p;\nchar *real_code;\nchar base = 'x';\nint modifier = 0; \n \
  +real_code = $*(p, "%c%d", base, modifier);\
       |\
       |dict-$*.html
   R|ap_pvsprintf\
  
  
  
  1.3       +6 -3      apache-devsite/apidoc/dict-ap_psprintf.html
  
  Index: dict-ap_psprintf.html
  ===================================================================
  RCS file: /home/cvs/apache-devsite/apidoc/dict-ap_psprintf.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -u -r1.2 -r1.3
  --- dict-ap_psprintf.html	1999/03/31 23:48:41	1.2
  +++ dict-ap_psprintf.html	2000/06/14 10:05:51	1.3
  @@ -1,6 +1,9 @@
   <P>
  -Writes formatted data to a pool.
  -Returns 0 on success, exits with return code 1 if out of memory.
  +Formats data <i>&agrave; la</i> <code>sprintf</code>, allocating
  +the necessary storage from the supplied pool.
  +Returns a pointer to the formatted string on success, returns NULL
  +if an error (such as out-of-memory) is encountered.  More information
  +<i>may</i> be available in <code>errno</code>.
   </P>
   <P>
   ap_psprintf is implemented by writing directly into the current
  @@ -11,7 +14,7 @@
   </P>
   <P>
   Note that this is completely safe because nothing else can
  -allocate in this pool while ap_psprintf is running.  alarms are
  +allocate in this pool while ap_psprintf is running.  Alarms are
   blocked, and the only thing outside of alloc.c that's invoked
   is ap_vformatter -- which was purposefully written to be
   self-contained with no callouts.
  
  
  

Mime
View raw message