summaryrefslogtreecommitdiff
path: root/src/user/app/testelf/main.c
blob: aa1f5969c686696778ff4fae72e420cd8efd1461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

const char *str = "Hello!", *str2 = "World.";

int main(int argc, char **argv, char **envp) {
	printf("elftest's &main == 0x%x\n", &main);
	printf("%s %s\n", str, str2);
	printf("argc == %u\n", argc);
	for (int i = 0; i < argc; i++)
		printf("argv[%u] == 0x%x == \"%s\"\n", i, argv[i], argv[i]);
	return 0;
}