rizin/test/unit/auxiliary/subprocess-helloworld.c
Riccardo Schirone 53bf5c497f SPDX Copyright text for all files based on history
- Add LICENSES directory
- Download additional licenses used
- Add .reuse directory
- Add doc about SPDX/reuse

Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2021-03-05 19:39:15 +08:00

19 lines
No EOL
368 B
C

// SPDX-FileCopyrightText: 2021 ret2libc <sirmy15@gmail.com>
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
char *you = "World";
char *e = getenv("YOUVAR");
if (e) {
you = e;
}
if (argc > 1) {
you = argv[1];
}
printf("Hello %s\n", you);
fprintf(stderr, "This is on err\n");
return 0;
}