Search:

Type: Posts; User: Ali.B

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    5,367

    i understand now :) thanks

    i understand now :)
    thanks
  2. Replies
    3
    Views
    5,367

    Address of (&) Operator and its use

    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)
    {
    ...
  3. Replies
    8
    Views
    2,105

    thanks, but do i need to compile it agains any...

    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:...
  4. Replies
    8
    Views
    2,105

    can u show me with an example code?

    can u show me with an example code?
  5. Replies
    8
    Views
    2,105

    a program that opens the browser

    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:...
  6. Replies
    2
    Views
    2,869

    Yes... :) file =...

    Yes... :)


    file = fopen("./path/log.txt","a+");

    this is what i needed to change, :) thanks for the help
  7. Replies
    2
    Views
    2,869

    Specify a path for write file

    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;
  8. wow :) nice .... thanks

    wow :) nice ....
    thanks
  9. could you show me how, with an example code or...

    could you show me how, with an example code or something ? :)
  10. Check if a string contains another string (substring)

    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...
  11. Replies
    7
    Views
    1,827

    Exactly....

    Exactly....
  12. Replies
    7
    Views
    1,827

    nvm... i figured it out by playing the peice of...

    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";...
  13. Replies
    7
    Views
    1,827

    yes i understood this part... and I can use it...

    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...
  14. Replies
    7
    Views
    1,827

    could u show me how with a piece of code? with...

    could u show me how with a piece of code? with both functions; sprintf() and strcat();
  15. Replies
    7
    Views
    1,827

    make one string from 2 strings.

    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};...
  16. yes... problem solved... thanks MK27... i didn't...

    yes... problem solved...
    thanks MK27... i didn't see your first post.... it workd perfectly and i could exctract both parts :)
    many thanks
  17. right, i meant to store is as string, like...

    right, i meant to store is as string, like "00611" as one string and "00500" as another string... how could i do that?
  18. this didn' work for me , I don't need to convert...

    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?
  19. Split a string into two parts and save as two variables

    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...
  20. Replies
    13
    Views
    7,452

    when i run the http server, it hosts some html...

    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 ,...
  21. Replies
    13
    Views
    7,452

    no i don't have lots of variables to share, the...

    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.
  22. Replies
    13
    Views
    7,452

    get a life and try to grow up...

    get a life and try to grow up...
  23. Replies
    13
    Views
    7,452

    lol.... i never said i coded the http server...

    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...
  24. Replies
    13
    Views
    7,452

    anyone?

    anyone?
  25. Replies
    13
    Views
    7,452

    i know, i can't call bt_recv() now, if i call it,...

    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()...
Results 1 to 25 of 39
Page 1 of 2 1 2