Skip to content

Instantly share code, notes, and snippets.

@KevinKu
Created July 3, 2015 04:30
Show Gist options
  • Save KevinKu/f60637c9efa59829eecc to your computer and use it in GitHub Desktop.
Save KevinKu/f60637c9efa59829eecc to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main( int argc , char* argv[] )
{
char message[50];
int read_ = atoi(argv[1]);
read( read_ , message , 50 );
message[49] = "\0" ;
printf( "%s" , message );
return 0 ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment