opengl

Sample code from LearnOpenGL.com
Log | Files | Refs

commit b4090b3e06d99d4c36aaef09c240423f720e15cf
parent 5e1ed285640869a5036e294645c88031282f1d40
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Tue, 27 Jun 2023 18:49:13 +0900

add return value

Diffstat:
Merr.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/err.c b/err.c @@ -7,7 +7,9 @@ int errorf(char *fmt, ...) { va_list ap; + int ret; va_start(ap, fmt); - vsnprintf(errstr, sizeof(errstr), fmt, ap); + ret = vsnprintf(errstr, sizeof(errstr), fmt, ap); va_end(ap); + return ret; }