Search:

Type: Posts; User: steve1_rm

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    6,663

    Hello 'c=' will always be unique. But the IP...

    Hello

    'c=' will always be unique. But the IP will always be different.

    Thanks
  2. Replies
    2
    Views
    6,663

    Parsing a string to get the ip address

    Hello

    g++ (GCC) 4.6.2

    I have a string that I need parse. The string is sdp information. I am trying to seperate each of the elements into seperate strings.

    Basically the string would contain...
  3. Replies
    6
    Views
    2,302

    Sorry, the penny didn't drop. I am coming from...

    Sorry, the penny didn't drop.

    I am coming from C# and just looking for some samples that use this in C.

    Thanks,
  4. Replies
    6
    Views
    2,302

    I guess I am. However, I am not too sure. Do you...

    I guess I am. However, I am not too sure. Do you have any samples,

    Thanks,
  5. Replies
    6
    Views
    2,302

    Hello, Yes, my_error was supposed to be...

    Hello,

    Yes, my_error was supposed to be report_error. I just changed the name to make it more readable.

    However, I was thinking it was better to do it this way. As I have heard many...
  6. Replies
    6
    Views
    2,302

    report messages

    Hello,

    C99
    gcc 4.4.3

    I want to report some error messages to the user of my program. I have found that using Variadic function is the most scalable method to use, but I am not sure how to put...
  7. Replies
    5
    Views
    2,844

    learning cross-platform development

    Hello,

    I am want to be able to write applications that will run on windows and linux.

    I know there are libraries that help you do this, apache-runtime, glib, etc.

    However, before I get into...
  8. Replies
    3
    Views
    1,578

    Hello, I thought the code below would copy the...

    Hello,

    I thought the code below would copy the contents of each element in the array. I declare memory with enough space and use sprintf to copy the new contents over.

    ...
  9. Replies
    3
    Views
    1,578

    Array of pointers - stack dumping

    Hello,

    I have a function that I would like to copy the contents off the pointer array into the output pointer array (and change the contents). However, it works, but I get a stack dump when I try...
  10. Replies
    3
    Views
    27,126

    filling a char array

    Hello,

    I am passing a char array. And clearing it and setting it with new data. However, in each case it only display the first 4 chars.

    my output
    main
    load
    fill
    fill
  11. Replies
    5
    Views
    1,875

    I have some documentation. But doesn't specify...

    I have some documentation. But doesn't specify about null terminating.

    I guess this is something I have to do myself.
  12. Replies
    5
    Views
    1,875

    null terminating a string

    Hello,

    I am wondering if I declare a array of chars like this.



    static char xml_buffer[1024];


    I am clearing the array before I fill it by using one of the following. By setting the...
  13. Replies
    4
    Views
    1,996

    Hello, This program does work. I call...

    Hello,

    This program does work. I call start_stopwatch. And it will callback in main.c timeout_cb() after the time has expired. I also run this in a seperate thread, as I don't want to block in...
  14. Replies
    4
    Views
    1,996

    threads and callbacks

    Hello,

    I am wondering where I should call my pthread_join().

    I have a file called stopwatch.c. In that that file I create a thread and in that thread I pass a function that will sleep for a...
  15. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    Hello, I have just created a simple program,...

    Hello,

    I have just created a simple program, as this is my first time with threads and callbacks.
    However, I am wondering do I really need a callback. Can I just call the timeout_cb() function...
  16. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    Hello, Thanks for the response. I am...

    Hello,

    Thanks for the response.

    I am wondering is it possible and I have never done this before, that is to create a callback. So after a interval as expired it will call this call back...
  17. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    hello, Thanks for the reply. I have changed...

    hello,

    Thanks for the reply.

    I have changed my main to add the pthread_exit(NULL)

    It now runs for 10 seconds.

    However, I would have thought I wouldn't have managed to get the current...
  18. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    Hello, I have decided to use the sample code....

    Hello,

    I have decided to use the sample code. However, I will run the start timer in another thread using pthread.

    However, when I run the application it doesn't run for 10 seconds as it...
  19. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    Hello, There is a good example I am following...

    Hello,

    There is a good example I am following here.

    I will show you my solution when finished.

    http://www.cplusplus.com/reference/clibrary/ctime/clock.html
  20. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    Hello, I think what I am really looking for is...

    Hello,

    I think what I am really looking for is a simple stopwatch application.

    Start and then after 10 seconds stop.

    This is what I am currently working on.

    Thanks,
  21. Thread: timers in c

    by steve1_rm
    Replies
    10
    Views
    204,096

    timers in c

    Hello,

    I am just wondering if there are any timers in c standard library.

    I just need a simple timer that will start and stop.
    example. Enter the function and start the timer. After a certain...
  22. Thread: c99

    by steve1_rm
    Replies
    8
    Views
    2,489

    Hello, I was just reading this post. And just...

    Hello,

    I was just reading this post. And just wondering how do you know if your compiler supports C99? I guess some features might be supported and some might not. But how would you know which...
  23. Replies
    4
    Views
    5,309

    Function prototypes - needed yes or no?

    Hello,

    I am programming in C.

    I prefer to use function prototypes for my static functions in my *.c files. And I always declare them at the top of my code.

    However, another worker who has a...
  24. Replies
    10
    Views
    3,572

    Hello, I was just researching to see if there...

    Hello,

    I was just researching to see if there is anything better. And came across debug macros, such as ASSERT, VERIFY, TRACE, and etc.

    How can these be used?

    Many thanks,
  25. Replies
    14
    Views
    1,458

    Hello, I have always had trouble with pointer...

    Hello,

    I have always had trouble with pointer to pointers. Especially when using a char.

    So I tried it without the pointer to pointer. However, I got printed out a load of rubbish in my printf...
Results 1 to 25 of 114
Page 1 of 5 1 2 3 4