i understand now :)
thanks
Type: Posts; User: Ali.B
i understand now :)
thanks
Hello.
i'm a newbie and i'm learning c... i had a question in mind in i thought here's a good place to ask...
consider the following piece of code:
#include <stdio.h>
void main (void)
{
...
thanks, but do i need to compile it agains any library? cuz this is my output when i compile it with this command:
#:~/Desktop/ex/bt/http$ gcc url.c -o url
the output:
url.c:1:21:...
can u show me with an example code?
hello people,
i want to write a program in c, that when i run it, it should open the browser ( firefox , since I'm using Linux) and goes to a given URL automatically, like:...
Yes... :)
file = fopen("./path/log.txt","a+");
this is what i needed to change, :) thanks for the help
Hi
i'm having this function:
int logger(char *log_prefix,char *buffer)
{
printf("Logger: Logging Command...\n");
time_t now;
time(&now);
FILE *file;
wow :) nice ....
thanks
could you show me how, with an example code or something ? :)
hello everyone
how can i check that a string contains another string(sub string), like:
if i have a string like this:
GET /send.htm?Text=PAYLOAD+00500+11611
and i want to check whether this...
Exactly....
nvm... i figured it out by playing the peice of code u Dino gave me :)
i did like this:
int main()
{
char Text[80] = {0};
char * line = "GET /send.htm?Text=START+00500+11611 HTTP/1.1";...
yes i understood this part... and I can use it now... thanks for the sample code :)
the output will be this; since my variables are xcoord and ycoord;
0050011611
now how can i add other...
could u show me how with a piece of code? with both functions; sprintf() and strcat();
hello
i managed to parse the parts that i need from this string:
"GET /send.htm?Text=START+00500+11611 HTTP/1.1"
with this pair of code ( with help of this forum :) ):
char Text[80] = {0};...
yes... problem solved...
thanks MK27... i didn't see your first post.... it workd perfectly and i could exctract both parts :)
many thanks
right, i meant to store is as string, like "00611" as one string and "00500" as another string... how could i do that?
this didn' work for me , I don't need to convert those to integers, just save them as two char variables. how would i do that?
hello guys...
I need to split the following string and save each part as a separate variable.
"00500+00611"
there string always will have 5 digits, a Plus (+) sign in the middle and 5 digits...
when i run the http server, it hosts some html pages; like index.html... in this html page, there's a button that sends messages using GET method in a FORM element.:
when this button is clicked ,...
no i don't have lots of variables to share, the only thing I need to do is to be able to receive bluetooth messages ( via bt_recv() ) at the same time of hosting web pages.
get a life and try to grow up...
lol.... i never said i coded the http server myself? i really would love someone to Quote that if i said it,first of all the school lets us to take codes from somewhere else and modify it if we need...
anyone?
i know, i can't call bt_recv() now, if i call it, the program crashes,
i need to call bt_recv() somewhere in main function of http server, so the http server would host the pages, and bt_recv()...