How To Extract Data Inside This Single Quoted String in C? I Need This in 2 Hours Please : Simple question and lets be straightforward.
I have this string.

('string1', 'string2', 'string3');

I want to extract data ONLY the string1, string2, string3 using C. Anyone have an idea?

Have tried something like this
`scanf("%s", &data1);
			printf("%s", data1);
				if(d=='`'){
				scanf("%s", &sampah);
				printf("%s", sampah);
					if(d=='`'){
					scanf("%s", &data2);
					printf("%s", data2);
						if(d=='`'){
						scanf("%s", &sampah);
						printf("%s", sampah);
							if(d=='`'){
							scanf("%s", &data3);
							printf("%s", data3);
								if(d=='`'){
								scanf("%s", &sampah);
								printf("%s", sampah);
									if(d=='`'){
									scanf("%s", &data4);
									printf("%s", data4);	
									}	
								}
							}
						}
					}
				}`


yes its stupid but this is just because I don't know what to do.
Please help :(