Scanf up to 79 chars into str : scanf length « printf scanf « C Tutorial






#include <stdio.h>

  int main(void)
  {
    char str[80], str2[80];
    int i;

    scanf("%79s", str);

    return 0;
  }








4.29.scanf length
4.29.1.Scanf up to 79 chars into str