home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 9
/
CD_ASCQ_09_1193.iso
/
maj
/
4331
/
strings.exe
/
CASE.C
< prev
next >
Wrap
Text File
|
1993-01-14
|
751b
|
32 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "strings.h"
/***
* Function : strcase
*
* Description : change case of a string.
* All special characters are translated (éèà...)
*
* Parameters : in char *string string to translate
* in casetype type UPPER/LOWER
*
* Value : type = { UPPER, LOWER }
*
* Decisions : If character > 255, no change made.
*
* Return : pointer to result
*
* OS/Compiler : All
***/
char *strcase( char *string, casetype type )
{ char *ptr;
for ( ptr = string ; *ptr; ptr++ ) *ptr = chcase( *ptr, type );
return string;
}