mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-03 02:53:04 +02:00
minor modification of strtolower(), and implement strtoupper()
This commit is contained in:
+16
-4
@@ -132,10 +132,22 @@ void
|
||||
strtolower(char *str)
|
||||
{
|
||||
if (str)
|
||||
while (*str) {
|
||||
*str = tolower(*str);
|
||||
str++;
|
||||
}
|
||||
while (*str) {
|
||||
if(isupper(*str))
|
||||
*str = (char) tolower(*str);
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
strtoupper(char *str)
|
||||
{
|
||||
if (str)
|
||||
while (*str) {
|
||||
if(islower(*str))
|
||||
*str = (char) toupper(*str);
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CIDER
|
||||
|
||||
Reference in New Issue
Block a user