Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

fgets input from user


// C program to illustrate
// fgets()
#include <stdio.h>
#define MAX 15
int main()
{
    char buf[MAX];
    fgets(buf, MAX, stdin);
    printf("string is: %s
", buf);
  
    return 0;
}
 
PREVIOUS NEXT
Tagged: #fgets #input #user
ADD COMMENT
Topic
Name
9+8 =