Postfix3.3.1
総合概要
データ構造
ファイル
ファイル一覧
大域各種
postfix-3.3.1
src
util
lowercase.c
[詳解]
1
/*++
2
/* NAME
3
/* lowercase 3
4
/* SUMMARY
5
/* map uppercase characters to lowercase
6
/* SYNOPSIS
7
/* #include <stringops.h>
8
/*
9
/* char *lowercase(buf)
10
/* char *buf;
11
/* DESCRIPTION
12
/* lowercase() replaces uppercase characters in its null-terminated
13
/* input by their lowercase equivalent.
14
/* LICENSE
15
/* .ad
16
/* .fi
17
/* The Secure Mailer license must be distributed with this software.
18
/* AUTHOR(S)
19
/* Wietse Venema
20
/* IBM T.J. Watson Research
21
/* P.O. Box 704
22
/* Yorktown Heights, NY 10598, USA
23
/*--*/
24
25
/* System library. */
26
27
#include "
sys_defs.h
"
28
#include <ctype.h>
29
30
/* Utility library. */
31
32
#include "
stringops.h
"
33
34
char
*
lowercase
(
char
*
string
)
35
{
36
char
*cp;
37
int
ch;
38
39
for
(cp =
string
; (ch = *cp) != 0; cp++)
40
if
(
ISUPPER
(ch))
41
*cp =
TOLOWER
(ch);
42
return
(
string
);
43
}
stringops.h
ISUPPER
#define ISUPPER(c)
Definition:
sys_defs.h:1754
lowercase
char * lowercase(char *string)
Definition:
lowercase.c:34
sys_defs.h
TOLOWER
#define TOLOWER(c)
Definition:
sys_defs.h:1755
2018年11月10日(土) 18時59分57秒作成 - Postfix3.3.1 / 構成:
1.8.9.1