I am using unix domain sockets.
I am using poll() call to figure out if have any bytes to recv on the socket fd.
The question I have is: Following this, is there still a need or rather is ...
Hi,
I'm looking for a function and example that does the same as the system() function but immediately returns to the calling function (on windows). When I call the system function currentl...
I understand the in Visual Studio 2005, all the UL languages (including VB, and C++)compile to the same Intermediate language (IL) which then gets compiled to maching language. Is this interme...
I'm trying to run a sample code from http://www.linuxhowtos.org/C_C++/socket.htm but encountered error when i run this problem in Ubuntu terminal.
xuan@ubuntu:~/socket$ cc client.c
client....
I need help with this problem YES IT IS A HOMEWORK PROBLEM, there is no need to remind me of this.
I am highly frustrated right now because this code won't work. I am trying to accomplish ...
I have two pieces of code. One is C and another C++. The C++ fetches stores data in classes and is supposed to provide that data to the C program. I'm trying to 'glue' the two together. My que...
I'm having problems with coming up with pseudo-code for a C program that will display the last 10 lines of a file. This needs to work on files that are only 5 lines long as well as files that...
how to modify c++ compiler in turboc ?
//hash table
l_node *h_bucket[62];
typedef struct hash_node
{
int fd_id;
char file_name[MAX_FILEDIR_NAME_SIZE];
char path[MAX_PATH_SIZE];
fd *file_desc;
}h_node;
This is a structure...
I would like to pass a string to a function, process_string() and have it return the string after it has been processed. Let's say I write my code as follows:
char* process_string(char* s...
I need help adding a pair of integers to a linked list. The pair needs to be added in a sorted order by the first element of the pair. Please help. I am getting a segmentation fault and I th...
Your help is highly appreciated in writing the source code for the below question
Write a program to implement a calculator to perform all the four basic arit~ metic operations on integer...
Hi there;
I am using TextMate but I cannot figure out how to compile a C code as I was writing in VS 6.0 and VS 2008. Could you help me?
When I have written something like that in the ed...
I have this code that generates an R*-tree, but when I create the tree it's always empty, and I need to generate some data to it.
Here is the code for the R*-tree and also the code on how I...
formulaCalc = ( n + m ) ( n - m + 1) / 2 ;
So my program is reading about ten files but three of those files are about 50-90 mb each and once my program reads those it errors out saying out of memory. anyone have an idea on how to get ...
Please explain difference between Clearcase reserved and unreserved checkout.
Hi, I've been studying the C standard a little and have a question about errors.
The C standard (or K&R, or anything official) doesn't specify a list of errors or anything like that, does i...
Hello, I asked the question
http://www.experts-exchange.com/Programming/Languages/C/Q_24836969.html
about whether a function can return a pointer to data in a way that the calling func...
Output:
Message Length
b1: 0
b2: 0
b3: 0
b4: 1
I'm don't understand why this is crashing my program. Could someone explain it, or at least suggest an alternative method that won't...
Hi there,
I would like to know what is it that I am doing wrong in the following code:
#include<stdio.h>
#define PI = 3.14
float process(float radius);
int main()
{
float...
I just had a question about fork. Suppose I do:
int i = 0; int *x = &i;
pid_t p;
p = fork();
if(p == 0)
{
(*x)++;
exit(1);
}
else if (p > 0)
{
wait(p);
}
printf("x = %d\n", ...
I have a program that receives user input and and also uses printf( to output statements to the screen. Is there a way that I can (upon evaluation of user-entered input) clear (only) the prev...
Hi Guys I recently started c language and have been practicing and writing simple c codes.
I recently wrote code for calculator......But something is not working......
I want something w...
Hi,
I have a simple statement which gives an access violation error in C++ (Borland):
void **A
*A = &B;
when i debug I can look in B and see data i would expect. How can this giv...