SDDS ToolKit Programs and Libraries for C and Python
All Classes Files Functions Variables Macros Pages
str_tolower.c File Reference

Detailed Description

Implementation of the str_tolower function.

License
This file is distributed under the terms of the Software License Agreement found in the file LICENSE included with this distribution.
Author
M. Borland, C. Saunders, R. Soliday

Definition in file str_tolower.c.

#include "mdb.h"
#include <ctype.h>

Go to the source code of this file.

Functions

char * str_tolower (char *s)
 Convert a string to lower case.
 

Function Documentation

◆ str_tolower()

char * str_tolower ( char * s)

Convert a string to lower case.

This function takes a string and converts all its characters to lower case.

Parameters
sThe string to convert.
Returns
The converted string.

Definition at line 27 of file str_tolower.c.

28{
29 register char *ptr;
30
31 ptr = s;
32 while (*ptr) {
33 *ptr = tolower(*ptr);
34 ptr++;
35 }
36 return (s);
37}