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
Hamidreza Mahdavipanah -
Raziel Rodrigues -
Mayank Kumar -
Wind UI -
Top comments (0)