Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Top C Solutions: 1 - 25 of 255
 
I'm getting a list of warning and errors with compling a C program with WIN Sockets. This works find on linux but I just can't get it to compile on windows vista. I also have the psdk installe...
I need to use good 'ole character arrays in a C++ class.  Also, this is an embedded system so no dynamic memory allocation. I've declared the array as a private member: private:        ...
hi, in order to turn a -negative modulus to a positive, this is what i do : i multiply with the divisor. But what happens if it is zero..do we still add the divisor int num ; int a =...
I am trying to process a data file that contains comma seperated string data (4 fields). I am using sscanf asa per attached codesnippet but sscanf only returns a value of 1 instrad of 4. The...
Hi all, I need to launch a perl process from a c program. I cannot use a separate file for the perl script due to security reasons. I need to embed the entire perl script inside c as a char...
hello experts, how do i use any internal command of Dos using System command of Turbo C/C++. i was trying  -   system("Del myfile.txt") but it didnt delted the file. i have included proc...
I have two files - client and server. I can get them to connect using tcp sockets but need to know once a connection is established how can i then have the client send a message to the server ...
I was wondering if it would be possible to create a queue data structure in C that can enqueue elements based on the type user specifies at the point where he uses it . Something like templ...
Hi, experts: I use cross-compiler to compile the Sqlite3. 1) wget http://www.sqlite.org/sqlite-3.6.1.tar.gz 2) tar -zxvf sqlite-3.6.1.tar.gz 3) cd sqlite-3.6.1 4) mkdir bld 5) cp Makefi...
I am trying to implement a Circular linked list, but i am having problem making the last ptr point back to the first element (to complete the circle) This is what i have so far Any help...
hi, i am trying to find memory usage of my program. One option is using top but it is not giving the exact value. is there any other way ? thanks
I am trying to use LibTiff to convert a monochrome TIFF to a 1 bit BMP image.  The TIFF image is coming into the dll as a pointer.  I have overrode the LibTiff read functions so that I can han...
HI. I need directions how to develop a code using C language (Queues) which simulate the operation of an airport. I have to create two queues (1 for landing and 1 for taking off), to give the...
I'm working with libecal to manage and add events to Evolution. Evolution date/time events are set to UTC timezone. No matter what i do the events in the calendar are always entered according ...
Hello, I'm working on a multithreaded TCP server and have a weird issue.  In my main while(1) I sit on a blocking accept call which is followed by a pthread_create.  I have set up a simple ...
Hi, I use cross-compiler mipsel-uclibc-gcc to compile the gSOAP source code.  After I compile, the cross-compiler shows me : mipsel-uclibc-gcc -Wall -O2  -I../.. -I../../plugin -I. -I/home...
Hey, I'm coding in C, looking to copy the param into a variable, like so: int main(int argc, char * argv[]) {      if(argv != 2)  return -1;      printf("%u", sizeof(argv[1])); } ...
What is significance of Stack Alignment, when compared to Data Alignment(Word Aligned/Word Addressable memory)? In case of Data Alignment, I can relate it to a problem (code snippet attache...
How can I cast a char pointer to an char array[9][100] ? - to prevent the warning message when compiled - it does work OK - see test program attached Thanks, Owen
Hi, 1) How do I copy a string like "gfgfgv"    into an: unsigned char aa[500] ? I can't use strcpy(aa,"gfgfgv") and I don't know how to cast it. Thanks
Hi, I am trying to follow a tutorial on using rpcgen. I am new to the C language so I'm just trying to follow exactly as the tutorial says. Please see http://www.cs.cf.ac.uk/Dave/C/node34.h...
i have an unsorted text file as an input to my application. I've been trying to srot that text file but i can't seem to find a proper way to do it. I'm sure there are several ways to to sor...
I am trying to write a program that produce all possible out come of flipping a coin "x" number of times, it has to be recursive and it produce an out come similar to this: coin flipped 2 tim...
I am trying simulate multiple requests that are handled by threads . When a request is created it is pushed in a queue . The main on inserting value into queue signals the condition wait varia...
Hello group, I'm trying to parse an html tag in an array assume called "buf". buf has the contents of an html file I have read from a server. Now, when I use strstr() to find a string or ...