X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/1691e80890e5d8ba258c51c214a3e91880e1db2b..64f5cda4610fa3de39a9d69aeda2d8a26f147f2e:/sbr/gans.c?ds=inline diff --git a/sbr/gans.c b/sbr/gans.c index dcfb316c..70234029 100644 --- a/sbr/gans.c +++ b/sbr/gans.c @@ -2,7 +2,9 @@ /* * gans.c -- get an answer from the user * - * $Id$ + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -24,12 +26,7 @@ gans (char *prompt, struct swit *ansp) if (i == EOF) return 0; if (cp < &ansbuf[sizeof ansbuf - 1]) { -#ifdef LOCALE i = (isalpha(i) && isupper(i)) ? tolower(i) : i; -#else - if (i >= 'A' && i <= 'Z') - i += 'a' - 'A'; -#endif *cp++ = i; } }