Hey everyone, i am just wondering how do i convert a string to just lowercase so it isn't case sensitive without using the loop method;

for(i=0; str[i]; i++)
  str[i]= tolower(str[i]);

There's no choice but to use a loop somewhere. You can hide it behind a function, or use a compiler-specific function like strlower(), but there's still a loop.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.