From 5471637563cec177e9d244a433d049591b023cbc Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 24 Oct 2026 21:12:13 -0700 Subject: [PATCH] getlimits: print the limits for 'unsigned short' * src/getlimits.c (USHRT_MIN): New macro. (main): Print the limits for 'unsigned short'. --- src/getlimits.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/getlimits.c b/src/getlimits.c index 514dd3c09..69d19c67e 100644 --- a/src/getlimits.c +++ b/src/getlimits.c @@ -69,6 +69,7 @@ * #ifdef (TYPE##_MIN) in function macro below. */ #define SIZE_MIN 0 #define UCHAR_MIN 0 +#define USHRT_MIN 0 #define UINT_MIN 0 #define ULONG_MIN 0 #define UINTMAX_MIN 0 @@ -178,6 +179,7 @@ main (int argc, char **argv) print_int (SCHAR); print_int (UCHAR); print_int (SHRT); + print_int (USHRT); print_int (INT); print_int (UINT); print_int (LONG);