#include <stdio.h>
#include <stdlib.h>

int caplowswitch(char string[], char switched[]);

int main(){

	char name[] = "WHYISTHISNOTWORking";
	char flipped[100] = "";

	caplowswitch(name, flipped);


	return 0;
}

int caplowswitch(char word[], char switched[]){

	char *ptrword = word;
	unsigned short int counter = 0;

	printf("Your text input is: %s \n", word);

	while(*ptrword != '\0'){

		switched[counter] = (*ptrword ^ 0x20);
		counter++;
		ptrword++;

	}

	switched[counter] = '\0';

	printf("Your flipped text is: %s \n", switched);

	return 1;
}
