SHARE
TWEET

Untitled

a guest Oct 3rd, 2010 335 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. int main(int argc, char *argv[]) {
  6.  
  7.   char          buffer[64];
  8.   int    number = 50;
  9.  
  10.   if(argc != 2)
  11.     return -1;
  12.  
  13.   strcpy(buffer, argv[1]);
  14.  
  15.   printf("Correcto:\n");
  16.   printf("%s\n", buffer);
  17.  
  18.   printf("Incorrecto:\n");
  19.   printf(buffer);
  20.  
  21.   printf("\n");
  22.  
  23.   printf("(-) Valor @ 0x%08x = %d 0x%08x\n",
  24.          &number, number, number);
  25.  
  26.   return 0;
  27. }
RAW Paste Data
Top