Hi,
How do I convert an integer to a string? Easiest coded example will be awarded.
I have an integer, p
want to convert p to string and send it using the following send command:
...
Before you ask. This is school work, saying that I don't want the answer. I would however like some help in solving my problem. I know how to convert binary to decimal on paper. Meaning I ...
Guys (and girls),
Two questions. Basically, I want to design an array of structs in C. And in these structs I want dynamic string allocation. I'm having major problems implementing this ...
How would I check to see if a given file exists? Not necessarily to open it or close it or anything, just to see if it exists.
Hey guys... I need a way to sort a linked list into decending order.
i have:
typedef struct person{
char name[20];
int age;
char sex;
int birthday;
struct person *next;
}p;
I...
Is this initialization correct ?
char sqID_split[5][15] = {""};
I am looking into building a program which can perform varying matrix manipulations and calculations as well as function as a sort of matrix calculator, at this time I am looking into the best...
hi all, i'm trying to execute a console application(written in vb.net vs2003) with a single parameter from a c progam, the code of my c program is as attached, the SendAlert.exe is working if ...
On what factors, size of data type depends?
1. Hardware Architecture
2. Operating System
3. Compiler
By definition, char must be at least 8 bits. That means can it be 16 bits as well.
gud day experts! i'm studying file i/o in C and now i'm in fread, fseek and fwrite topic. I find the topic difficult and I don't have many sample's here. Can anyone recommend a site or give...
I'm trying to figure out how to avoid recv() calls that hang forever by using using a non-blocking socket along with the select() function. This seems to be the standard way to avoid recv() c...
The code below is used in order to try and cast / convert a structure to a char pointer. Why do i want to do this? I want to print the representing bytes so that i afterwards can cast from a s...
Dear All,
I have developed a simple client server application, the server needs
to send around 1.5 MB of data to the client for each transaction
continously. But the server is only able to ...
Can anyone please give an example that actually shows the difference in behavior between memcpy and memmove? The example they give in MSDN, and an example I created myself, both show the same:...
I am seeking a copy of
cgiutils.h asap.
I am runnning XP Pro. I have 1.5 GB of RAM.
I am a computer programmer.
I maintain a legacy application that uses an old 16-bit compiler (MSVC 1.52). This is not going to change. I ne...
I have a prototype for a function (that I didn't write but have to use) and I think that it takes a two dimensional array and
I don't know how to pass one to a function. The function prototy...
Hi
I need two simple functions:
1 - Convert Binary to Decimal and returns this value
2- Convert Decimal to Binary and returns this value
Thanks
HI everyone,
I have a service written in PRO C that is doing a simple Select from a table. I have debugged it to make sure that the parameters that are being passed are correct. I get a ...
I want t beable to use the batch file "ERRORLEVEL" based on the return value of my program.
My program looks something like this:
int main(void)
{
If (x == TRUE)
return 1...
How to convert a string like "1e234", located in a file, to int format using standard C functions?
How can i compile and run a c and c++ source code in linux mandrake 10.1?When i compile the program with gcc ,it compiled successfully and it creates default a.out file but when i type a.out a...
When should I use fopen vs open?
Why does the standard have two sets of functions to handle files?
Does anyone have a small program that given a MAC Address, can go out and find the corresponding IP address
if it exists on the network. If not, can you point me in the right direction about...
Are argc, argv local to main