コード例 #1
0
void beginHeaderLine(char* type) {

	char *tag = (char*) malloc (20*sizeof(char)) ;
	sprintf(tag, "<h3><u>%s:</u>", type) ;
	tailInsertLinkedList(header, tag) ;
	pushLinkedList(closeTags, closeH3) ;
}
コード例 #2
0
void beginTitleHtml() {

	fprintf(tempFile, "<h%d>", titleLevel) ;
	switch (titleLevel) {
		case 1 :	{	sect++ ; subSect = 0 ; subSubSect = 0 ; 
						fprintf(tempFile, "<a id=\"section_%d\">", sect) ; break ;}
		case 2 : 	{ 	subSect ++ ; subSubSect = 0 ; 
						fprintf(tempFile, "<a id=\"section_%d_%d\">", sect, subSect) ; break ;}
		case 3 : 	{ 	subSubSect ++ ; 
						fprintf(tempFile, "<a id=\"section_%d_%d_%d\">", sect, subSect, subSubSect) ; break ;}
		default : ;
	}	
	char *closeTitle = (char*)malloc(6); // o free nunca é feito
	sprintf(closeTitle, "</h%d>", titleLevel) ;
	pushLinkedList(closeTags, closeTitle) ;
	pushLinkedList(closeTags, closeLink) ;	
}
コード例 #3
0
void beginDictionaryTitleHtml() {

	fprintf(tempFile, "<dt>") ;
	pushLinkedList(closeTags, closeDt) ;		
}
コード例 #4
0
void beginItemHtml() {

	fprintf(tempFile, "<li>") ;
	pushLinkedList(closeTags, closeLi) ;		
}
コード例 #5
0
void beginDictionaryHtml() {

	fprintf(tempFile, "<dl>") ;
	pushLinkedList(closeTags, closeDl) ;	
}
コード例 #6
0
void beginUnorderListHtml() {

	fprintf(tempFile, "<ul>") ;
	pushLinkedList(closeTags, closeUl) ;		
}
コード例 #7
0
void beginOrderListHtml() {

	fprintf(tempFile, "<ol>") ;
	pushLinkedList(closeTags, closeOl) ;	
}
コード例 #8
0
void beginLinkHtml() {

	fprintf(tempFile, "<a href=\"") ;
	pushLinkedList(closeTags, closeLink) ;
}
コード例 #9
0
void beginItalicHtml() {

	fprintf(tempFile, "<i>") ;
	pushLinkedList(closeTags, closeI) ;
}
コード例 #10
0
void beginHeaderUnderlineHtml() {

	tailInsertLinkedList(header, openU) ;
	pushLinkedList(closeTags, closeU) ;	
}
コード例 #11
0
void beginBoldHtml() {

	fprintf(tempFile, "<b>") ;
	pushLinkedList(closeTags, closeB) ;
}
コード例 #12
0
void beginHeaderItalicHtml() {

	tailInsertLinkedList(header, openI) ;
	pushLinkedList(closeTags, closeI) ;	
}
コード例 #13
0
void beginHeaderBoldHtml() {

	tailInsertLinkedList(header, openB) ;
	pushLinkedList(closeTags, closeB) ;	
}
コード例 #14
0
void beginDictionaryItemHtml() {

	fprintf(tempFile, "<dd>") ;
	pushLinkedList(closeTags, closeDd) ;		
}
コード例 #15
0
void beginUnderlineHtml() {

	fprintf(tempFile, "<u>") ;
	pushLinkedList(closeTags, closeU) ;
}
コード例 #16
0
ファイル: struct.c プロジェクト: miguelpinto98/SO_Counts
void insereDistrito(LinkedList ll, Distrito d) {
	pushLinkedList(ll, d);
	printf("Inseri %s\n", d->nome);
}
コード例 #17
0
void beginCaptionHtml()  {
	
	fprintf(tempFile, "' alt='Image %d' />\n", nImg) ;
	fprintf(tempFile, "<figcaption>") ;
	pushLinkedList(closeTags, closeFigure) ;
}