Change character string to uppercase

#include <stdio.h>
#include <wchar.h>
 
int main(void)
{
  wchar_t text[100];
 
  printf("\nEnter the string to be searched(less than 100 characters): ");
  fgetws(text, 100, stdin);
 
  /* Convert both strings to uppercase. */
  int i;
  for(i = 0 ; (text[i] = towupper(text[i])) ; i++);
 
  printf("\nFirst string entered:\n%S\n", text);
  getch();
}

Comments

Popular posts from this blog

Customize User's Profile in ASP.NET Identity System

Migrating database from ASP.NET Identity to ASP.NET Core Identity