yes, but what if they enter "exahttp://ple.com" http still their but was not detected first, how can i make it so it has to be first, any ideas?
Type: Posts; User: starternewb
yes, but what if they enter "exahttp://ple.com" http still their but was not detected first, how can i make it so it has to be first, any ideas?
can anyone tell me how i would detect if "http://" was the first part of a string?
eg "http://example.com" would be detected however "example.com" would not
thanks
How would i use pipe(), fork(), exec() etc to do a "wget google.com"?
Also i will want to return the stuff that would normally be printed into terminal into a text area in a gui
does anyone know how to libcurl but get it to save the result to a file eg bla.txt
libcurl - simple.c this gets it into memory
ah, thank you that worked
i installed via fink and it put it in a different dir not /usr/bin/wget as usual
----
i tried this to get the location inside the c program
popen("/usr/bin/which...
I tried this
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
popen("wget http://google.com", "w");
it is possible to send bash commands into a c application right?
for example if i wanted to do a "wget http://example.com" inside a c application how would this be done?
wahoo, thanks everyone for the help much appreciated!
so
char* bla1, bla2, bla3;
means all the bla1..2..3 are all now pointers?
or it means just bla1 would be a pointer and bla2..3 are chars?
---
Im very new, what does this mean when a * is in this location
char* val;
I noticed its used here Cprogramming.com Tutorial: Pointers however it is applied to the val and not char
char *val;