Last active
April 7, 2018 09:48
-
-
Save ShivamShrirao/3888e7f52b2e1328f534a6d907ac4c63 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<unistd.h> | |
#include<string.h> | |
int main() | |
{ | |
char buf[100]; | |
printf("Enter input: "); | |
read(0,buf,250); //read 250 bytes from stdin (0) to buf | |
printf("Input was : %s\n",buf); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment