source: buchla-68k/lib700/tolower.c@ d1ecb94

Last change on this file since d1ecb94 was b28a12e, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Zero redundant declarations.

  • Property mode set to 100644
File size: 651 bytes
Line 
1/*
2 ============================================================================
3 tolower.c -- convert character to lower case ASCII
4 Version 1 -- 1987-09-11 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8#include "ram.h"
9
10/*
11 ============================================================================
12 tolower(c) -- convert c to lower case ASCII
13 ============================================================================
14*/
15
16int16_t tolower(int16_t c)
17{
18 int16_t x;
19
20 if (isascii(c)) {
21
22 if (isupper(c))
23 x = _tolower(c);
24 else
25 x = c;
26
27 } else {
28
29 x = c;
30 }
31
32 return(x);
33}
34
35
Note: See TracBrowser for help on using the repository browser.