This is a real program, except for one small detail.
In an ideal world, this is all you would need to use Curl in your program; no
downloading installing a Curl distribution, no adding of search path and linker
entries to a makefile or other build system artifact.
The function CurlGet isn’t from the curl package, it’s my code. I separated it
out just to make it clearer. Here it is, for completeness’ sake. Put this together
with the code above and a compiler that supports packages, and you get this:
In our current world, if you have a computer without Curl on it, and are not
running an operating system where Curl has been packaged up for you to grab,
you’re in for an hour to a day of finding Curl source, building it, and then
adding it to your program.