Search:

Type: Posts; User: odysseus.lost

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,338

    Thanks for the reply. No I am not confused :). I...

    Thanks for the reply. No I am not confused :). I have already done setting up the IPs as static but still my server-client programs could not talk to each other.... One solution is that I need to...
  2. Replies
    2
    Views
    2,338

    peer to peer wifi communication

    Hello,

    I want to have a server-client communication between two PCs using wifi. So far I can do that by using an intermediate router with DHCP using TCP/IP programing. What I would like is to take...
  3. Replies
    160
    Views
    1,197,277

    Sticky: C Programming: A modern approach by K.N. King...

    C Programming: A modern approach by K.N. King
    An excellent and easy to understand introduction to intermediate level of C. I ve been using it since my Bachelors whenever I want to have a clear...
  4. Replies
    4
    Views
    14,717

    Thanks a lot guys.... Your links and the tip that...

    Thanks a lot guys.... Your links and the tip that it is basically socket programming is a very very big relief.... Bob also thanks for your link to the windows wlan api. It can be probably helpful on...
  5. Replies
    4
    Views
    14,717

    wifi network programming

    Hi,

    I want to implement a c/c++ program that allows communication between two pcs through their wifi cards. The way I am thinking of is having the same program running on the two pcs (or have...
  6. Replies
    2
    Views
    1,089

    Thanks a lot. Both for the answer and for...

    Thanks a lot. Both for the answer and for reminding me the man pages.
  7. Replies
    2
    Views
    1,089

    scanf a value ignoring a previous one

    A very quick question. I need to scan and store the second value in a file but I am forgetting the syntax of fscanf. Let me illustrate it with an example.

    A file has one line, the following:

    1,...
  8. This works just fine. Cheers.

    This works just fine. Cheers.
  9. passing an object as an argument to a function (by reference)

    Hi,

    how can I pass an object as an argument to a function. My knowledge of C++ is NULL but I do cope well with C so please accept my apologies if my question is rubbish. Basically here is my...
  10. Thanks everybody. You have been most helpful.

    Thanks everybody. You have been most helpful.
  11. including header files in the program file (.c) or in the header file (.h)

    Hi,

    sorry for such a trivial question.... What is it better to include the header files in the header file or in the main program (probably bearing in mind that the .h file is not dependent on the...
  12. Replies
    7
    Views
    2,893

    Good... but then you do not use WNOHANG anymore...

    Good... but then you do not use WNOHANG anymore and subsequently you suspend the execution of the parent program until any single child process terminates (or with the for loop, until all children...
  13. Replies
    6
    Views
    1,577

    Thanks guys. But both answers are restricted to...

    Thanks guys. But both answers are restricted to the operating system and secondly it assumes firefox is installed.... What I would like is something like what you see in many programs when you click...
  14. Replies
    7
    Views
    2,893

    Absolutely nowhere. In fact it does not even wait...

    Absolutely nowhere. In fact it does not even wait a zombie process, it returns and frees the resources used by the children process. Furthermore, it waits as long as one/any process is terminated....
  15. Replies
    6
    Views
    1,577

    spawn default html browser

    Hi. How would I launch the default html browser from my program under both windows and linux?

    Cheers.
  16. Replies
    7
    Views
    2,893

    Not really. wait() will wait until one process...

    Not really. wait() will wait until one process exits and will clean all the zombie ones. However, the WNOHANG means that it will not hang the program to this statement. This is done by that if there...
  17. Replies
    13
    Views
    1,308

    Or write your own function by using fgetc() which...

    Or write your own function by using fgetc() which is reading character by character.
  18. Replies
    8
    Views
    1,422

    What have you exactly changed?? It seems to me...

    What have you exactly changed?? It seems to me you are starting to learn c language as well. char and float are reserved keywords of the language.
    Try something like


    #include <stdio.h>...
  19. processes, threads, gtk development, portability on linux and win32

    Hello,

    I will try to be as clear as possible. I am developing an application under linux using gtk. There are different gtk programs that can be run standalone. But I want another program to...
  20. Replies
    3
    Views
    1,164

    In linux use a terminal as root and type: ...

    In linux use a terminal as root and type:

    ifconfig

    if it fails try
    /sbin/ifconfig

    Your IP address is after the inet addr
  21. Replies
    15
    Views
    4,311

    Had the same problem and the above code also...

    Had the same problem and the above code also works for me. Using
    g++ (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)

    extern StructureName variableName may declare that there is a variable of StructureName...
  22. Replies
    2
    Views
    18,833

    Thanks, that works just fine.

    Thanks, that works just fine.
  23. Replies
    2
    Views
    18,833

    scanf and regular expressions

    Hi,

    I have the following statement to my code:

    sscanf(line, "%[^=\n]=%[^\n]", tag, value);

    which if I understand well it means scanf any character till a newline or an = character is...
  24. Replies
    8
    Views
    4,670

    so basically you mean: Use fgets() to read a...

    so basically you mean:
    Use fgets() to read a line into a buffer
    Use strlen() to work out the length
    Use malloc() to allocate enough space for that line
    Use strcpy() to copy from the buffer to the...
  25. Replies
    8
    Views
    4,670

    reading a file line by line and char *

    Hi i have a chicken and egg problem. I want to read a file line by line into a char *, let's say str. In order to malloc str I need to know the length of the line which I cannot have unless I read...
Results 1 to 25 of 28
Page 1 of 2 1 2