ne_buffer_create.3 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. '\" t
  2. .\" Title: ne_buffer_create
  3. .\" Author:
  4. .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
  5. .\" Date: 15 April 2025
  6. .\" Manual: neon API reference
  7. .\" Source: neon 0.34.2
  8. .\" Language: English
  9. .\"
  10. .TH "NE_BUFFER_CREATE" "3" "15 April 2025" "neon 0.34.2" "neon API reference"
  11. .\" -----------------------------------------------------------------
  12. .\" * Define some portability stuff
  13. .\" -----------------------------------------------------------------
  14. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. .\" http://bugs.debian.org/507673
  16. .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  17. .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. .ie \n(.g .ds Aq \(aq
  19. .el .ds Aq '
  20. .\" -----------------------------------------------------------------
  21. .\" * set default formatting
  22. .\" -----------------------------------------------------------------
  23. .\" disable hyphenation
  24. .nh
  25. .\" disable justification (adjust text to left margin only)
  26. .ad l
  27. .\" -----------------------------------------------------------------
  28. .\" * MAIN CONTENT STARTS HERE *
  29. .\" -----------------------------------------------------------------
  30. .SH "NAME"
  31. ne_buffer_create, ne_buffer_ncreate \- create a string buffer
  32. .SH "SYNOPSIS"
  33. .sp
  34. .ft B
  35. .nf
  36. #include <ne_alloc\&.h>
  37. .fi
  38. .ft
  39. .HP \w'ne_buffer\ *ne_buffer_create('u
  40. .BI "ne_buffer *ne_buffer_create(void);"
  41. .HP \w'ne_buffer\ *ne_buffer_ncreate('u
  42. .BI "ne_buffer *ne_buffer_ncreate(size_t\ " "size" ");"
  43. .SH "DESCRIPTION"
  44. .PP
  45. \fBne_buffer_create\fR
  46. creates a new buffer object, with an implementation\-defined initial size\&.
  47. \fBne_buffer_ncreate\fR
  48. creates an
  49. \fBne_buffer\fR
  50. where the minimum initial size is given in the
  51. \fIsize\fR
  52. parameter\&. The buffer created will contain the empty string ("")\&.
  53. .SH "RETURN VALUE"
  54. .PP
  55. Both functions return a pointer to a new buffer object, and never
  56. NULL\&.
  57. .SH "SEE ALSO"
  58. .PP
  59. ne_buffer
  60. .SH "COPYRIGHT"
  61. .br
  62. Copyright \(co 2001-2024 Joe Orton
  63. .br