comparison src/sysdep.c @ 1271:44186d7cf4dd

[xemacs-hg @ 2003-02-07 21:05:32 by james] Return the parameter for both strlwr and strupr, and make the definition of strupr depend on no HAVE_STRUPR definition.
author james
date Fri, 07 Feb 2003 21:05:35 +0000
parents e22b0213b713
children 70921960b980
comparison
equal deleted inserted replaced
1270:d65d8a05e272 1271:44186d7cf4dd
3353 3353
3354 #ifndef HAVE_STRLWR 3354 #ifndef HAVE_STRLWR
3355 char * 3355 char *
3356 strlwr (char *s) 3356 strlwr (char *s)
3357 { 3357 {
3358 while (*s) 3358 REGISTER char *c;
3359 { 3359
3360 *s = tolower (*s); 3360 for (c = s; *c; c++)
3361 ++s; 3361 {
3362 } 3362 *c = tolower (*c);
3363 } 3363 }
3364 #endif 3364 return s;
3365 3365 }
3366 #ifndef HAVE_STRLWR 3366 #endif
3367
3368 #ifndef HAVE_STRUPR
3367 char * 3369 char *
3368 strupr (char *s) 3370 strupr (char *s)
3369 { 3371 {
3370 while (*s) 3372 REGISTER char *c;
3371 { 3373
3372 *s = toupper (*s); 3374 for (c = s; *c; c++)
3373 ++s; 3375 {
3374 } 3376 *c = toupper (*c);
3377 }
3378 return s;
3375 } 3379 }
3376 #endif 3380 #endif
3377 3381
3378 3382
3379 /************************************************************************/ 3383 /************************************************************************/