1 // SPDX-License-Identifier: BSD-2-Clause 2 /* 3 * Copyright (c) 2015, Linaro Limited 4 */ 5 #include <ctype.h> 6 tolower(int c)7 int tolower(int c) 8 { 9 if (c >= 'A' && c <= 'Z') 10 return c - 'A' + 'a'; 11 return c; 12 } 13