Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created July 2, 2019 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/96afdea62ea11543e936de464bebe549 to your computer and use it in GitHub Desktop.
Save parzibyte/96afdea62ea11543e936de464bebe549 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <ctype.h>
int main(int argc, char const *argv[])
{
char cadena[] = "Hola Mundo, esto va a ser convertido a MINUSCULA. Parzibyte.Me";
printf("Cadena original: %s\n", cadena);
// Convertir cada char a minúscula
// usando tolower
for (int indice = 0; cadena[indice] != '\0'; ++indice){
cadena[indice] = tolower(cadena[indice]);
}
printf("Cadena despues de ser convertida: %s\n", cadena);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment