diff options
| author | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2023-11-14 16:31:31 -0500 |
| commit | 0030c5ea720f492fcaed2cd5ebb52f7ad54170fd (patch) | |
| tree | 2c507618e3c22ce1062d823200d0811375797fcd /src/stdlib | |
| parent | 88aa612a4e75833368f6c4552d95d1d5c1232555 (diff) | |
return 0 if c is EOF
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/__constraint_info.h | 1 | ||||
| -rw-r--r-- | src/stdlib/abort_handler_s.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/stdlib/__constraint_info.h b/src/stdlib/__constraint_info.h index f8ffb539..9e66db5b 100644 --- a/src/stdlib/__constraint_info.h +++ b/src/stdlib/__constraint_info.h @@ -1,3 +1,4 @@ struct __constraint_info { const char *func; + int value; }; diff --git a/src/stdlib/abort_handler_s.c b/src/stdlib/abort_handler_s.c index c08ebb4e..c35148a7 100644 --- a/src/stdlib/abort_handler_s.c +++ b/src/stdlib/abort_handler_s.c @@ -12,6 +12,7 @@ void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t err puts(msg); if (ci) { printf("In call to %s\n", ci->func); + printf("value %x\n", ci->value); } if (error != 0) { printf("Provided error: %s (%d)\n", strerror(error), error); |
