VC大小写转换

VC大小写转换:

#include "stdafx.h"
#include <string.h>
#include <stdio.h>

void main( void )
{
   char string[100] = "The String to End All Strings!";
   char *copy1, *copy2;
   copy1 = _strlwr( _strdup( string ) );
   copy2 = _strupr( _strdup( string ) );
   printf( "Mixed: %s/n", string );
   printf( "Lower: %s/n", copy1 );
   printf( "Upper: %s/n", copy2 );
}

你可能感兴趣的:(String)