
need urgent help for string processing
Hi: I need your help to solve a c program
Question:
If we have to write certain tags in an HTML page
multiple times, it may be easier to define a
constant once and replace it (much
like the #define in C). For example, if I have to
add a hyperlink to http://www.*-*-*.com/ . I could
type:
http://www.*-*-*.com/
which will show up as http://www.*-*-*.com/
web browser. I would prefer to do the following.
#define LINK(string)
http://www.*-*-*.com/
. . .
LINK(people)<br>
LINK(courses)<br>
so that I can use it more than one times. My
program will do the preprocessing before I put the
page on the web. The output
of the file should look somthing like.
. . .
http://www.*-*-*.com/ ;br>
http://www.*-*-*.com/ ;br>
The link is just one examples. There are as much
as 10 defines. fopen function cannot be used, the
unix command line will read input file and give
outputfile.
Thank you very much.