is there any way to compare two structures other than comparing each member of the structures simultaneously
I need to read the button pressed on a 4x4 keypad, connected to Port E on the MCU. This is for user to enter frequency, so several "presses" need to be stored in an array. My confusion is ho...
Whats the name of the Windows 32 SDK API function to write an ENTER keystroke to the keybaord buffer as equivalent of pushing the ENTER key.
In C, you can declare an array like this:
int array[4] = {5, 10, 15, 20};
How do you fill the array after it is declared, without filling each one at a time.
After it is declared, I ...
what is the use of a function pointer in programs
any specific , that a function pointer will prove effective in coding
I am new in programming socket and i try to copy an example of server and client.The problem is that appear a lot of wanrning and the code is not running.Because i am in confuse can you help m...
Here's a sample web page form for doing an HTTP POST: http://www.pathsolutions.com/testform.asp
When the form is filled out and submitted, it calls testpost.asp. Testpost.asp has:
<% = Re...
I try to implement a binary subtraction but i have not got rhe right result for all possiples combination for example when i have 1100-0011 the result is wrong.(I need subtraction to implemen...
Hello group,
I'm reading a file which has three chunks in it. I think I'm using fseek() in a wrong way so it causes an extra iteration while looping.
any advice is appreciated.
Regar...
Hi, I am trying to extract words from a text file and put each word into an array. Words can be seperated by space or puncts. In my below code, I am checking if a character isspace, if it is I...
Hi, experts:
On A PC, it installs the OpenSSL library. I take the program which links to OpenSSL library to B PC. The B PC doesn't install the OpenSSL library. After I execute that program, t...
How would I go about:
1. Check for the existence of a running process
2. Kill it if it exists
I want to declare a variable to be volatile and const
just like this
int volatile conts *p= ...
so in this case i cannot change *p value
buti have declared it as volatile
how is it po...
Hi,
Hopefully this has an easy solution, though browsing the web has not given me any quick and simple answer.
I'm developing a microcontroller project that will have an embedded web ser...
i am having a problem in using pointer to double dimesion array created at run time which is of type my strcut. partial code is given below.
// some of the declarations are
typedef uns...
hi, im trying read an input from a user and if the input begins and end with character &, i will get the enviroment variable of it and do some processing... The assignment of env = getenv(env...
Hi, im trying to do something and assign the values to a pointer to a string. the following is my code.. the current code is not efficient.. any one can help me improve on this? what im trying...
Hi,
I need to write a program to display the months of the year as well as creating a function to display the previous month. If the user inputs FEB than it should display JAN. I tried runn...
I run the program the display the menu selection works but when I make my selection for each store the program does not show the Printf information that I placed in my program? Can you provid...
hi,
i need algorithm in c language, that recieves decimal integer, converts it to binary number, and counts the number of "1" digits (stored the result in integer variable).
for example:
1...
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...
Hi everyone,
I'm working on a project (log file parser) which requires to determine the
length of time of different clients on line.
At the moment I'm getting the date format as double dat...
Hello,
I've a problem here, in C? Please explain me how to retrieve the
physical file name from the file handle (FILE *fp or int fp).
Here is the sample code that I've.
#include <std...
Given a structure containing an array, how can the size of the array be learned via sizeof, without creating an instance of the structure or creating a pointer to the structure?
Example:
...
how to convert decimal to hex in c language?