Find Jobs
Hire Freelancers

convert simple perl tools to compilable c code for linux systems

$30-250 USD

En curso
Publicado hace casi 11 años

$30-250 USD

Pagado a la entrega
small and simple perl tool need to be migrated to executables binaries, 'make'able c++ code should do it, mainly to be run on linux type OS... perl version attached perl piece: ---------------------------------------------------------------------- #!/usr/bin/perl use strict; use Socket; my $me = $0; my $input = $ARGV[0]; if ($me =~ /ip2int/) { my $ipnumber = ip2num( "$input" ); if ( $ipnumber ) { print "$ipnumber\n"; } } elsif ($me =~ /int2ip/) { my $ip = num2ip( $input ); if ( $ip ) { print "$ip\n"; } } elsif ($me =~ /mac2int/) { my $num = mac2num( "$input" ); if ( $num ) { print "$num\n"; } } elsif ($me =~ /int2mac/) { my $mac = num2mac( "$input" ); if ( $mac ) { print "$mac\n"; } } sub ip2num { return unpack 'N', inet_aton(shift); } sub num2ip { return inet_ntoa( pack 'N', shift ); } sub mac2num { my $mac_hex = shift; $mac_hex =~ s/://g; $mac_hex = substr(('0'x12).$mac_hex, -12); my @mac_bytes = unpack("A2"x6, $mac_hex); my $mac_num = 0; foreach (@mac_bytes) { $mac_num = $mac_num * (2**8) + hex($_); } return $mac_num; } sub num2mac { my $mac_num = shift; my @mac_bytes; for (1..6) { unshift(@mac_bytes, sprintf("%02x", $mac_num % (2**8))); $mac_num = int($mac_num / (2**8)); } return join(':', @mac_bytes); } ----------------------------------------------------------------------
ID del proyecto: 4414069

Información sobre el proyecto

6 propuestas
Proyecto remoto
Activo hace 11 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
I have a lot of experience with C coding and Perl scripting. If the price is ok, you can have bulletproof code in a day. Let me know if you have any questions.
$60 USD en 1 día
5,0 (36 comentarios)
4,6
4,6
6 freelancers están ofertando un promedio de $90 USD por este trabajo
Avatar del usuario
Hello, I have ~30 years experience in both Perl and C/C++. I see what each step of your script is doing I will be able to translate this from Perl to C++ for you. A IDLER
$93 USD en 3 días
4,9 (96 comentarios)
5,6
5,6
Avatar del usuario
Dear Sir. I'm very interested in your job post involving these skills. I am just LinuxOS/Network expert and have 7 years experience. I have consistently delivered projects on time and under budget, which has earned us many positive ratings, as you'll see in work history. I believe that my skills would be ideal for your project. Regards, Jin.
$412 USD en 4 días
5,0 (7 comentarios)
4,5
4,5
Avatar del usuario
I can do it.
$80 USD en 2 días
5,0 (10 comentarios)
3,5
3,5
Avatar del usuario
Hello. More 20 years programming experiense.
$100 USD en 1 día
5,0 (1 comentario)
2,1
2,1
Avatar del usuario
Hi i can do this
$99 USD en 3 días
5,0 (2 comentarios)
1,5
1,5
Avatar del usuario
Hi, I can do it, Please check your PM.
$110 USD en 2 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
herndon, United States
5,0
1
Forma de pago verificada
Miembro desde abr 9, 2013

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.