Riccardo Gai
Riccardo Gai

Reputation: 421

how can I get the source code (html) of a page in C?

how can I get the source code (html) of a page in C? I need external libraries? I read a library (libcurl), which is right for me or is there some function that no other libraries should I download?

Upvotes: 0

Views: 153

Answers (1)

pipsik
pipsik

Reputation: 219

For this task string.h library will be enought.This library contains alot of functions which will help you to work with strings of your html page.

Your algorithm: 1. You are calculate quantity of characters in HTML file; 2. Allocate array; 3. Read file into array; 4. Work with your array;

Upvotes: 1

Related Questions