Hi,
I compile the webserver sample in gSOAP project with cross-compiler mipsel-uclibc-gcc. The mipsel-uclibc-gcc compiler shows me the error message:
----------------------------------------...
In a 'C' program, if I write a line something like as follows:
system ("echo password | gpg --no-tty -q --passphrase-fd 0 -d add2numbers.sh.asc | bash -s 3 4");
where I am decrypting an ...
I would like to replace the characters \n, \r and \f whenever I encounter them in a string with <br>. To replace a single character, in the string, I could use the following code:
.
.
.
{
...
I try to implement a Go back N protocol in C language using state maching, Ack,timeout, and sockets.(I want to implement receiver and transmiter).I want to know if someone can help me ?
I created a simple currency conversion program last week and would like to add to it to give the user a choice to convert either to or from USD. So, I added selections, and set up the formula...
Hi Experts,
I have some old C code that runs on a hand held terminal, that I need to tweek and recomplie.
Currently under VC I am getting errors regarding code that is no longer in DOS.H...
if i have a function with a static local variable, that's dynamically allocated once:
int funct(void)
{
static char* buffer = NULL;
if (!buffer)
buffer = malloc(SIZE...
I found a useful algorithm for calculating the shortest line between two lines In 3D on :
http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline3d/
but I cannot use it because I did not...
when compiled/run in unix it correctly places 111111 into donation2 when donation has the value $111,111.00. But when run in LoadRunner the value placed into donation2 is 1$111,111.001aejoykei...
Hello,
I've been studying some questions in preparation for an interview. One of them has given me some trouble.
Since it's an interview prep question, I don't want anyone to just give ...
HI,.
I have written platform independent C code (for linux and windows) and would like to use the APIs for MS SQL Server so that I can connect to any SQL Servers when necessary.
I have no ...
I wish to write the following line to a file in C.
<style type = "text/css" title = "screen" media="screen, print">
My question is how to I write the double quote character " ? If I do f...
Hi,
I'm not familiar with SDL function which used to create sound player.
Let's say i need to create an application in programming C. The application need to rewind, change pitch, toggle l...
hi,
this is stupid question..i know but i dont know how to do it..could you pls help....
for instance,
if(i>0)
value+=1;
else if(i<0)
value=value;
now instead of putting value...
The following is an interview question :
Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array...
I was wandering how i could calculate the average of 10 integers input by the user through the keyboard and then display the result! Thanks
Hi experts,
I am working on a keyword retrieval project. Here is an example.
Assume that the following is a keyword file.
Serial Number Keywords
10 ...
Hello,
i want to implement a function, which returns a array of char* with well formated IPs from an DNS-Lookedup Hostname.
I created the attached code and get the following warnings while...
If I am working with very large float variables, and need to eventually display the output in scientific notation, how would I do that with printf?
I also do not want to lose anything from ...
Hi ,
This question is from one of the popular books .
Given a sequential file containing 4,300,000,000 integers, how can you find one that appears at least once ?
a) How to solve i...
hi,
is it good to use ftell. i was reading and there is some problems with ftell such as it contains certain long length..some recommend fgetpos...also it is for mainly binary file...
th...
hi,
i understand that in main, we use exit_success, exit_failure
but lets say , we want to sent from the function we make
example
int myfunct(....)
return exit_success;
is th...
Ok, If there are 5 lines to the file this needs to read in, why will scanf only scan the first line 5 times into the structure array, and printf will print the whole file? I put a for loop at ...
hi, i have a single direction linked list and within a node there is a itemId. i am trying to delete the linked list by specifying the id. Im thinking since i do not have a pointer to the prev...
Hii pls provide me with a function with which i can give delay in miiliseconds in C language