All pastes #473257 Raw Edit

Untitled

public c v1 · immutable
·published 2007-05-06 03:57 UTC
rendered paste body
#include <stdio.h>struct PersonT{   char firstName[20];   int yearBorn;};typedef struct PersonT Person;int main (int argc, char **argv) {Person allpersons[10];  int i=0;   while (i<10){      printf("First name:");      if (fgets(allpersons[i].firstName, 20, stdin)==NULL){      i=10; //quit while loop      }      i++;   }       return (0);}