/* File: url-to-string.h * Author: Jim Mayfield */ /* url_to_string is a function that takes a string containing a URL as its argument, and returns a string containing the text of the file specified by the URL as its result. To use it: 1. #include "url-to-string.h" in your C file. 2. Compile your program so that it uses the 202 libraries. To do so, you will need add several items to your Makefile. Lines of the Makefile that create .o files will need to include `-I ~mayfield/lib202' immediately after the cc command, e.g.: cc -I ~mayfield/lib202 -g -c myfile.c Lines of the makefile that build executables will need to include `-L ~mayfield/lib202 -l202' immediately after the queue of .o files, e.g.: cc -o myprog myfile.o myfile_aux.o -L ~mayfield/lib202 -l202 */ #ifndef _URL_TO_STRING_HEADER_ #define _URL_TO_STRING_HEADER_ char * url_to_string(char *url); #endif