char* getFileData(char* fileName) {
if(!strcmp(fileName, "filea.csd"))
return "this is the content of the file a";
else if(!strcmp(fileName, "fileb.csd"))
return "this is the content of the file b";
else if(!strcmp(fileName, "filec.csd"))
return "this is the content of the file c";
else
return "";
}
void main () {
char* shader = strdup(getFileData("filea.csd"));
}