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

char* removeQuotes(char str[]) {
	int i = 1;
	int len = strlen(str) - 2;
	char * tmp = (char*) malloc (sizeof(char) * len);
	for (;i<=len;++i ) {
		tmp[i-1] = str[i];
	}
	return tmp;
}

int main(void) {
	char str[] = "Hello, world";
	char * abc = removeQuotes(str);
	printf("Inside the quotes is: %s length: %d\n"
			"Original is: %s length: %d", abc, strlen(abc), str, strlen(str));
	return 0;
}
