-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstringlib.h
More file actions
18 lines (17 loc) · 769 Bytes
/
stringlib.h
File metadata and controls
18 lines (17 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
int wordCount(const char* string);
int countVowelsInTheString(const char* string);
char* reverseString(const char* string);
bool isPalindrome(const char* string);
int countSpace(const char* string);
static int findCharacterIndex(const char* string, char c, bool isFirstIndex);
int findFirstCharacterIndex(const char* string, const char c);
int findLastCharacterIndex(const char* string, const char c);
void convertToLowerCase(char* string);
void convertToUpperCase(char* string);
static int countCharacter(const char* string, char c, bool isNotCaseSensitive);
int countCharacterIgnoreCaseSensitive(const char* string, char c);
int countCharacterCaseSensitive(const char* string, char c);