Hello, I have a new problem, if anybody can help.
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char url[35] = "\"http://www.google.com\"";
execl("/usr/bin/wget", "wget", url, 0);
return 0;
}
When I try to run this program, I get the following error.
--04:21:04--
ftp://%22http//www.google.com%22
=> `
www.google.com"'
Resolving %22http... failed: Host not found.
Why is it adding %22 to my code. When I print it, it works. 22 in hex, is the quotation marks, why is it changing them. It compiles fine.
Lazyuser