Skip to content

Instantly share code, notes, and snippets.

Created Feb 13, 2021
What would you like to do?
char cadena1[MAXIMA_LONGITUD] = "";
char cadena2[MAXIMA_LONGITUD] = "";
printf("\nIngresa la cadena 1: ");
fgets(cadena1, MAXIMA_LONGITUD, stdin);
cadena1[strcspn(cadena1, "\r\n")] = 0;
printf("\nIngresa la cadena 2: ");
fgets(cadena2, MAXIMA_LONGITUD, stdin);
cadena2[strcspn(cadena2, "\r\n")] = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment