#include <safe-c.h>

integer_type char_lower(integer_type c)
{
  if ((c >= 'A') && (c <= 'Z'))
    c = c + 'a' - 'A';
  return(c);
}

void string_lower(string_type aaa)
{
  integer_type n;
  n = 0;
  while (aaa[n] != 0)
  {
    aaa[n] = char_lower(aaa[n]);
    n++;
  }
}


void main(void)
{
  string_type s;


  put_string("Welcome to LOWER.\n");
  put_string("Please enter a string:\n");
  get_string(s);
  string_lower(s);
  put_string("Here is the converted string:\n");
  put_string(s);
}
