Created
February 2, 2018 13:38
-
-
Save vay3t/d30c865bbd7bee01b42a293feaa687b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <stdio.h> | |
void func(char *arg){ | |
char nombre[32]; | |
strcpy(nombre, arg); | |
printf("Bienvenido a Linux Exploiting %s \n",nombre); | |
} | |
int main(int argc, char *argv[]){ | |
if(argc != 2){ | |
printf("Uso: %s NOMBRE\n", argv[0]); | |
return 1; | |
} | |
func(argv[1]); | |
printf("Fin del programa\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment