libcfe  0.12.1
some useful C-functions
string_case_conversion.c File Reference
#include "config.h"
#include "string_case_conversion.h"
#include <stddef.h>
#include <stdlib.h>
#include <ctype.h>
#include "len.h"
Include dependency graph for string_case_conversion.c:

Go to the source code of this file.

Functions

char * string_to_lower (const char *in)
 
char * string_to_upper (const char *in)
 

Function Documentation

◆ string_to_lower()

char* string_to_lower ( const char *  in)

Turn all the letters in a string to its lowercase equivalent, the result is returned as a new allocated string.

Parameters
[in]inPointer to the input string.
Returns
Pointer to the string containing only lowercase letters.

Definition at line 10 of file string_case_conversion.c.

◆ string_to_upper()

char* string_to_upper ( const char *  in)

Turn all the letters in a string to its uppercase equivalent, the result is returned as a new allocated string.

Parameters
[in]inPointer to the input string.
Returns
Pointer to the string containing only uppercase letters.

Definition at line 23 of file string_case_conversion.c.