Public feed #376505

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-03-01 02:14 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>
/* lab5 */

void makeHeader(FILE *outfile, char *title);
void finish(FILE *outfile);

main()
{
        FILE *out;
        if ((out = fopen("myWebPage.html", "w")) == NULL)
                printf("Error Opening myWebPage.html");
                exit(1);
        makeHeader(out, "Factors");
}
void makeHeader(FILE *outfile, char *title) {
        fprintf(outfile, "<html>\n<head>\n"); /* write the html */
        fprintf(outfile, "<title> %s </title>\n", title);
        fprintf(outfile, "</head>\n<body>");
}