mirror of
https://github.com/osmarks/ngircd.git
synced 2025-03-30 20:46:57 +00:00
- neue Funktion ngt_LowerStr().
This commit is contained in:
parent
d7d2ab3d7f
commit
fdf23efef4
@ -9,7 +9,7 @@
|
|||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: tool.c,v 1.7 2002/03/12 14:37:52 alex Exp $
|
* $Id: tool.c,v 1.8 2002/03/22 00:17:27 alex Exp $
|
||||||
*
|
*
|
||||||
* tool.c: Hilfsfunktionen, ggf. Platformabhaengig
|
* tool.c: Hilfsfunktionen, ggf. Platformabhaengig
|
||||||
*/
|
*/
|
||||||
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include "imp.h"
|
#include "imp.h"
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -50,4 +51,26 @@ GLOBAL VOID ngt_TrimStr( CHAR *String )
|
|||||||
} /* ngt_TrimStr */
|
} /* ngt_TrimStr */
|
||||||
|
|
||||||
|
|
||||||
|
GLOBAL CHAR *ngt_LowerStr( CHAR *String )
|
||||||
|
{
|
||||||
|
/* String in Kleinbuchstaben konvertieren. Der uebergebene
|
||||||
|
* Speicherbereich wird durch das Ergebnis ersetzt, zusaetzlich
|
||||||
|
* wird dieser auch als Pointer geliefert. */
|
||||||
|
|
||||||
|
CHAR *ptr;
|
||||||
|
|
||||||
|
assert( String != NULL );
|
||||||
|
|
||||||
|
/* Zeichen konvertieren */
|
||||||
|
ptr = String;
|
||||||
|
while( *ptr )
|
||||||
|
{
|
||||||
|
*ptr = tolower( *ptr );
|
||||||
|
ptr++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return String;
|
||||||
|
} /* ngt_LowerStr */
|
||||||
|
|
||||||
|
|
||||||
/* -eof- */
|
/* -eof- */
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: tool.h,v 1.6 2002/03/12 14:37:52 alex Exp $
|
* $Id: tool.h,v 1.7 2002/03/22 00:17:27 alex Exp $
|
||||||
*
|
*
|
||||||
* log.h: Hilfsfunktionen (Header)
|
* log.h: Hilfsfunktionen (Header)
|
||||||
*/
|
*/
|
||||||
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
GLOBAL VOID ngt_TrimStr( CHAR *String );
|
GLOBAL VOID ngt_TrimStr( CHAR *String );
|
||||||
|
|
||||||
|
GLOBAL CHAR *ngt_LowerStr( CHAR *String );
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user