i hav a school project of implementing wget through c..
I know the purpose of wget but dont know how it can be written in c.
please help.
i hav a school project of implementing wget through c..
I know the purpose of wget but dont know how it can be written in c.
please help.
wget IS written in C
wget source code - Google Search
Specifically, see Index of /gnu/wget
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I don't think wget uses libcurl, but it will probably save you a lot of work:
libcurl - API
With that you could write something that would cover the basic wget functionality in < 100 lines.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge