LIBSSDP
 All Classes Files Functions Variables Typedefs Macros
Functions
string_utils.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int strpos (const char *haystack, const char *needle)
 
unsigned char strcount (const char *haystack, const char *needle)
 

Detailed Description

Header file for string_utils.c.

Definition in file string_utils.h.

Function Documentation

unsigned char strcount ( const char *  haystack,
const char *  needle 
)

Counts how many times a string is present in another string.

Parameters
haystackThe string to search in.
needleThe string to search for.
Returns
The number of times needle is present in haystack.

Definition at line 19 of file string_utils.c.

int strpos ( const char *  haystack,
const char *  needle 
)

Finds the position of a string in a string (or char in a string).

Parameters
haystackThe string to search in.
needleThe string to search for.
Returns
The position of the needle-string in the haystack-string.

Definition at line 11 of file string_utils.c.