Macros | Functions
substitutions.c File Reference
#include <ctype.h>
Include dependency graph for substitutions.c:

Macros

#define touppercase(c)   (toupper(((unsigned char)(c))))
 

Functions

char * strcasestr (char *src, char *sub)
 

Macro Definition Documentation

◆ touppercase

#define touppercase (   c)    (toupper(((unsigned char)(c))))

Referenced by strcasestr().

Function Documentation

◆ strcasestr()

char* strcasestr ( char *  src,
char *  sub 
)

Case-insensitive version of strstr().

Returns
Returns a pointer to the beginning of the first occurrence, or NULL if not found.
Parameters
srcPointer to string in which substring is seached
subPointer to substring which is searced for in source string

References touppercase.

Referenced by cunitFromFilename().