blob: 9b7e20e36df39782e9f0bf3f227d26210eea727b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
* Copyright (C) 2024 Runxi Yu <me@runxiyu.org>
*/
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
int main(int argc, char *argv[])
{
int status;
if (argc < 1) {
puts("Pass an argument. Try a non-empty argument and an empty argument.");
return 1;
}
if (strlen(argv[1]))
status = 0;
printf("status = %d\n", status);
if (status != 0) {
puts("Aaaaah!!!! See, it is uninitialized!");
}
return 0;
}
|