Created
July 3, 2015 04:30
-
-
Save KevinKu/f60637c9efa59829eecc to your computer and use it in GitHub Desktop.
This file contains 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 <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