diff options
| author | Joshua Saxby <joshua.a.saxby@gmail.com> | 2023-04-21 22:33:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-21 22:33:32 +0100 |
| commit | 1d1b64871eacf288229f973c2bbb003fb81d78fc (patch) | |
| tree | 80a01ca5299590afcc05916837c8f17457548350 /examples/beginner | |
| parent | eaec942f56ceec9c14de5c4185a02602abadd50a (diff) | |
| download | psn00bsdk-1d1b64871eacf288229f973c2bbb003fb81d78fc.tar.gz | |
Add C11 error checking to vsnprintf()
C11 specifies that vsnprintf() is to check for the following conditions:
- output buffer or format string are null pointers
- buffer size is zero
C11 also specifies "constraint handler functions" that may be set, but that's far more involved, and having at least some error-handling for bad arguments like these is probably quite useful.
Source: https://en.cppreference.com/w/c/io/vfprintf#:~:text=5%2D8),constraint%20handler%20function%3A
Diffstat (limited to 'examples/beginner')
0 files changed, 0 insertions, 0 deletions
