/*
 * test.c
 *
 * A simple test program to demonstrate the usage 
 * of my_string lib
 */

#include <stdio.h>
#include <string.h>
#include "my_string.h"

int main()
{
    char *string = "WasBoulat Was Here Was there WasWas";
    char *result;
    int counter;

    printf("\nOriginal string '%s'\n", string);
    counter = Substr_count(string, "Was");
    printf("'Was' is repeated %d times in the original string\n\n", counter);

    result = Strtolower(string);
    printf(">%s<\n\n", result);

    result = Strtoupper(string);
    printf(">%s<\n\n", result);

    result = Str_Replace("Was", "", string);
    printf(">%s<\n\n", result);

    return 0;
}
