Korialstrasza
Gawd
- Joined
- Jan 21, 2004
- Messages
- 561
I need to make this string lowercase but I can't seem to get it working
How can I use tolower() here? I tried this
I get an "illegal operand" error on the ; after the tolower()
thanks for any help
Code:
void inputBooks()
{
struct BOOKS info[]
// ASK for input
printf("Enter the name of the book: ");
gets(info[0].name);
...........
How can I use tolower() here? I tried this
Code:
void inputBooks()
{
struct BOOKS info[]
char temp_string;
// ASK for input
printf("Enter the name of the book: ");
gets(&temp_string);
// fill the structure thing
info[0].name = tolower(temp_string);
...........
thanks for any help