All checks were successful
CI / ci (MinSizeRel, ubuntu-latest) (pull_request) Successful in 1m10s
CI / ci (Release, ubuntu-latest) (pull_request) Successful in 1m9s
CI / ci (RelWithDebInfo, ubuntu-latest) (pull_request) Successful in 1m13s
CI / ci (Debug, ubuntu-latest) (pull_request) Successful in 2m44s
CI / ci (MinSizeRel, ubuntu-latest) (push) Successful in 1m5s
CI / ci (RelWithDebInfo, ubuntu-latest) (push) Successful in 1m5s
CI / ci (Release, ubuntu-latest) (push) Successful in 1m4s
CI / ci (Debug, ubuntu-latest) (push) Successful in 2m37s
14 lines
329 B
C++
14 lines
329 B
C++
#include <lib.hpp>
|
|
void entry_point(Slice<const char*> arguments, Slice<char* const> environment);
|
|
int main(int argc, const char* argv[], char* const envp[])
|
|
{
|
|
auto* envp_end = envp;
|
|
while (*envp_end)
|
|
{
|
|
envp_end += 1;
|
|
}
|
|
|
|
entry_point({argv, (u64)argc}, {envp, (u64)(envp_end - envp)});
|
|
return 0;
|
|
}
|