mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 00:02:54 +00:00
Merge pull request #503 from Batchyx/nullbuffers
doc/reference.html: Document that XML_GetBuffer(parser, 0) may return NULL
This commit is contained in:
commit
9c9b05d2d7
1 changed files with 2 additions and 1 deletions
|
@ -1115,7 +1115,8 @@ XML_GetBuffer(XML_Parser p,
|
|||
<div class="fcndef">
|
||||
Obtain a buffer of size <code>len</code> to read a piece of the document
|
||||
into. A NULL value is returned if Expat can't allocate enough memory for
|
||||
this buffer. This has to be called prior to every call to
|
||||
this buffer. A NULL value may also be returned if <code>len</code> is zero.
|
||||
This has to be called prior to every call to
|
||||
<code><a href= "#XML_ParseBuffer" >XML_ParseBuffer</a></code>. A
|
||||
typical use would look like this:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue