Hello
'c=' will always be unique. But the IP will always be different.
Thanks
Type: Posts; User: steve1_rm
Hello
'c=' will always be unique. But the IP will always be different.
Thanks
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...
Sorry, the penny didn't drop.
I am coming from C# and just looking for some samples that use this in C.
Thanks,
I guess I am. However, I am not too sure. Do you have any samples,
Thanks,
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...
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...
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...
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.
...
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...
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
I have some documentation. But doesn't specify about null terminating.
I guess this is something I have to do myself.
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...
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...
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...
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...
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...
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...
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...
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
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,
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...
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...
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...
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,
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...