]> pd.if.org Git - pdclib/blobdiff - functions/ctype/toupper.c
Whitespace cleanups.
[pdclib] / functions / ctype / toupper.c
index 00cb203500b5b362a241cff15ece78a4834886cf..2ef335960232d69a4c0557bde7d7d6240c15aa4b 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* toupper( int )
 
    This file is part of the Public Domain C Library (PDCLib).
 
 #ifndef REGTEST
 
+#include <locale.h>
+
 int toupper( int c )
 {
-    return _PDCLIB_locale_info.ctype[c].upper;
+    return _PDCLIB_lconv.ctype[c].upper;
 }
 
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
 
 int main( void )
 {
@@ -30,4 +31,5 @@ int main( void )
     TESTCASE( toupper( '[' ) == '[' );
     return TEST_RESULTS;
 }
+
 #endif