paul@308 | 1 | /* |
paul@308 | 2 | * A test of executing code in a new task. |
paul@308 | 3 | * |
paul@308 | 4 | * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk> |
paul@308 | 5 | * |
paul@308 | 6 | * This program is free software; you can redistribute it and/or |
paul@308 | 7 | * modify it under the terms of the GNU General Public License as |
paul@308 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@308 | 9 | * the License, or (at your option) any later version. |
paul@308 | 10 | * |
paul@308 | 11 | * This program is distributed in the hope that it will be useful, |
paul@308 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@308 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@308 | 14 | * GNU General Public License for more details. |
paul@308 | 15 | * |
paul@308 | 16 | * You should have received a copy of the GNU General Public License |
paul@308 | 17 | * along with this program; if not, write to the Free Software |
paul@308 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@308 | 19 | * Boston, MA 02110-1301, USA |
paul@308 | 20 | */ |
paul@308 | 21 | |
paul@308 | 22 | #include <stdio.h> |
paul@308 | 23 | |
paul@308 | 24 | |
paul@308 | 25 | |
paul@308 | 26 | int main(int argc, char *argv[]) |
paul@308 | 27 | { |
paul@318 | 28 | int i; |
paul@318 | 29 | |
paul@314 | 30 | printf("Hello from %s (%d)!\n", argc > 0 ? argv[0] : "exec_payload.c", argc); |
paul@318 | 31 | |
paul@318 | 32 | for (i = 0; i < argc; i++) |
paul@318 | 33 | printf("Arg #%d: %s\n", i, argv[i]); |
paul@318 | 34 | |
paul@308 | 35 | return 0; |
paul@308 | 36 | } |
paul@308 | 37 | |
paul@308 | 38 | /* vim: tabstop=2 expandtab shiftwidth=2 |
paul@308 | 39 | */ |