Code:
char generate_code(char *category)
{
  return category[0];
}