char.isupper

is there an islower() or something to find out if a char is lower or upper case in arduino?

Yes, there is islower(int) and isupper(int).

mkwired:
Yes, there is islower(int) and isupper(int).

tyvm for the reply and well im a noob and im doing it wrong cuz when i use isupper(char) i get this error:
‘isupper’ was not declared in this scope. whats the right way?

void setup ()
{
char c;
isupper (c);
}

void loop () {}

Gives:

Binary sketch size: 450 bytes (of a 32256 byte maximum)

Now, what's your code?

im trying to use it in a if statement

function go(char* str)
{
  int len = strlen(str);
  for(int num=0;num<len;++num)
  {
   val = str[num];
   if(isupper(val))
    {
     //do something if its upper
    }else{
     //its not upper
    }
  }
}
go("asdASD");
sketch_mar22a:-1: error: 'function' does not name a type
sketch_mar22a:0: error: 'function' does not name a type
sketch_mar22a:14: error: expected constructor, destructor, or type conversion before '(' token

What's function?

yeah sry got my langs mixed up there lol, here is the right one.

void go(char* str)
{
  int len = strlen(str);
  for(int num=0;num<len;++num)
  {
   byte val = str[num];
   if(isupper(val))
    {
     //do something if its upper
    }else{
     //its not upper
    }
  }
}
go("asdASD");
void go(char* str)
{
  int len = strlen(str);
  for(int num=0;num<len;++num)
  {
   byte val = str[num];
   if(isupper(val))
    {
     //do something if its upper
    }else{
     //its not upper
    }
  }
}

void setup ()
 {
  go("asdASD");
 }
void loop () {}

Gives:

Binary sketch size: 468 bytes (of a 32256 byte maximum)

Can't reproduce it, sorry.

Umm how could that be?

Well, give more details. Post a complete sketch from start to finish that reproduces your error. Tell us which version of the IDE you are using. What operating system?

yeah i up dated IDE and it works now, thank you very much.