Bug 1885489 - Part 9: Add SnapshotIterator::readObject(). r=iain
[gecko.git] / docs / nspr / reference / pr_geterrortext.rst
blobe8a0508b8af24ef8ab34c78913c62eaee4033f4c
1 PR_GetErrorText
2 ===============
4 Copies the current thread's current error text without altering the text
5 as stored in the thread's context.
8 Syntax
9 ------
11 .. code::
13    #include <prerror.h>
15    PRInt32 PR_GetErrorText(char *text);
18 Parameters
19 ~~~~~~~~~~
21 The function has one parameter:
23 ``text``
24    On output, the array pointed to contains the thread's current error
25    text.
28 Returns
29 -------
31 The actual number of bytes copied. If the result is zero, ``text`` is
32 unaffected.