script in c
#!/usr/bin/perl
use Inline C;
$arg = $ARGV[0];
$arg = tr/[a-z]/[A-Z]/; # modification du paramètre
exit main0($arg);
__END__
__C__
#include <stdio.h>
int main0(char *arg1)
{
printf("Hello %s \n",arg1);
return 0;
}
script in c
#!/usr/bin/perl
use Inline C;
$arg = $ARGV[0];
$arg = tr/[a-z]/[A-Z]/; # modification du paramètre
exit main0($arg);
__END__
__C__
#include <stdio.h>
int main0(char *arg1)
{
printf("Hello %s \n",arg1);
return 0;
}
script in c
#!/usr/bin/perl
use Inline C;
exit main0();
__END__
__C__
#include <stdio.h>
int main0()
{
printf("Hello world !\n");
return 0;
}
script in c
$ chmod +x test1.c
$ ./test1.c
> Hello world !
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us