Open Hanochsunil opened 2 months ago
void main(){ printf("this is the first.c called by execv\n"); } second.c
void main(){ char* args[]={"./first.o",NULL}; printf("before execv\n"); execv(args[0],args); printf("after execv\n")
include
void main(){ printf("this is the first.c called by execv\n"); } second.c
include
include
void main(){ char* args[]={"./first.o",NULL}; printf("before execv\n"); execv(args[0],args); printf("after execv\n")