gTemplate = malloc(MAX_TEMPLATE_SIZE+1);
gTemplate = (char*) malloc(MAX_TEMPLATE_SIZE+1);
Init () {  if (!gInited) {    int n = 0;    FILE *templateFile = fopen("template.html", "r");    gInited = 1;        gNarrow = RDF_GetResource("narrow", 1);    gLink = RDF_GetResource("link", 1);    gName = RDF_GetResource("name", 1);    gTopic = RDF_GetResource("Topic", 1);    gDesc = RDF_GetResource("description", 1);    gEditor = RDF_GetResource("editor", 1);    gNewsGroup = RDF_GetResource("newsGroup", 1);    gTemplate = malloc(MAX_TEMPLATE_SIZE+1);    memset(gTemplate, '\0', MAX_TEMPLATE_SIZE);    n = fread(gTemplate, 1, MAX_TEMPLATE_SIZE, templateFile);    gTemplate[n] = '\0';    fclose(templateFile);  }}