first.c.html
#include <stdio.h> #include <string.h>
char name[255] = {'\0'};
int main(int argc, char **argv){ printf("Welcome to NYLXS\n"); printf("Enter your name-->\n"); fgets(name, sizeof(name), stdin);
while(strcmp("\n", name) != 0){ printf("value ->%s size->%d\n", name, sizeof(name)); fgets(name, sizeof(name), stdin); } return(1); }
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|