actually, _start
is real magic word.
nomain.c:
#include <stdio.h>
extern void _exit(register int);
int _start(){
printf("Hello world!\n");
_exit(0);
}
$ gcc -o nomain nomain.c -nostartfiles
$ ./nomain
Hello world!
actually, _start
is real magic word.
nomain.c:
#include <stdio.h>
extern void _exit(register int);
int _start(){
printf("Hello world!\n");
_exit(0);
}
$ gcc -o nomain nomain.c -nostartfiles
$ ./nomain
Hello world!
For further actions, you may consider blocking this person and/or reporting abuse
wicked sarkar -
Isaac Tonyloi - SWE -
Bosco Domingo -
AIRabbit -
Top comments (0)