From 1d2b12a0ace218ad44a677ef17032dd0b7f20cba Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Mon, 28 Oct 2024 05:39:41 +0000 Subject: [PATCH] Print `N/A` if `--ids` is not specified --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 11c99b5..e63cb44 100644 --- a/src/main.c +++ b/src/main.c @@ -243,6 +243,12 @@ int main(int argc, char *argv[]) { } } + // If array is empty + if (idsCount == 0) { + // Print "N/A" + printf("N/A"); + } + // Print the count of elements in the array and newline character printf(" (%zu)\n", idsCount); }