mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-30 09:53:29 +00:00
Reorganize the codebase
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
888853a6de
commit
271a16d492
16
regression/apps/execve/hello.c
Normal file
16
regression/apps/execve/hello.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char *argv[], char *envp[]) {
|
||||
printf("Hello world from hello.c(execved in execve.c)!\n");
|
||||
printf("argc = %d\n", argc);
|
||||
for(int i = 0; i < argc; i++) {
|
||||
printf("%s\n", argv[i]);
|
||||
}
|
||||
for(int i = 0 ;; i++) {
|
||||
if (envp[i] == NULL) {
|
||||
break;
|
||||
}
|
||||
printf("%s\n", envp[i]);
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user