Funktion - MyUCase

Kurzbeschreibung

Diese Funktion ersetzt alle Kleinbuchstaben im übergebenen String in Grossbuchstaben.

Parameter:

Code

void MyUCase(char *txt)
{
  volatile char c;
  while (( c = *txt ))
  {
    if ((c >= 'a') && (c <= 'z'))
    {
      c = c - 0x20;
      *txt = c;
    }
 
    txt++;
  }
}


Letzte Änderung: 2015-02-22 13:16:30
Seite erzeugt in 0.048 Sekunden (4.9 kB)