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: 2026-11-16 20:19:18
Seite erzeugt in 0.097 Sekunden (8.2 kB)