1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/*
* File: ops.h
* Program: unhtml
* Written by: Kevin Swan, 013639s@dragon.acadiau.ca)
* Completed: February 3, 1998
* Version: 2.3
*/
#include <stdio.h>
#include <errno.h>
#ifndef OPS_H
#define OPS_H
#ifndef MAX_TAG_SIZE
#define MAX_TAG_SIZE 256
#endif
/*
* Checks if a given tag is an HTML script opening tag, <SCRIPT>.
* It checks in a case-insensitive manner.
*
* Given: a string that is an HTML tag.
* Return: 1 if that tag is a script opening tag, 0 otherwise.
*/
int isScriptOpeningTag (char *tag);
/*
* Checks if a given tag is an HTML script closing tag, </SCRIPT>.
* It checks in a case-insensitive manner.
*
* Given: a string that is an HTML tag.
* Return: 1 if that tag is a script closing tag, 0 otherwise.
*/
int isScriptClosingTag (char *tag);
/*
* Checks if a given tag is an actual HTML tag
* It checks in a case-insensitive manner.
*
* Given: a string that could be an HTML tag.
* Return: 1 if that tag is an HTML tag, 0 otherwise
*/
int isRealHtmlTag (char *tag);
#endif
|