I've got a problem (a homework problem), basically, i have 5 integers.
lets call them int1, int2, int3, int4, int5, all of type int.
Basically this is a small portion of the problem that...
Hi,
I need a function in C that converts a character (char) to a decimal ...
I will be thankful to anyone who can provide this ...
here is my current program for currency conversion. how would i add a loop that accepts any one of these 5 input currenciesx and then display it's equivalency in dollars. i only need one curre...
Can someone explain when and why a void star needs to be converted to a char star star? The actual parameter s is a char *, and the formal parameter s is (obviously) a void *. However, I seem ...
Hi everybody,
I'm writing a print executable for a group that is mapped to a particular directory need to print from. But not everyone can use the same drive letters to map with. The ex...
I seeking code routine that accept string pointer into unsigned int
unsigned int result;
unsigned char text[10]="65535\0"; // \0 to insert end of line
result = atoui(&text);
I am...
Does anyone have any C code which demosntrates how to convert from a decimal value to Packed BCD and vice versa?
Thanks
Can anyone tell me what I am doing wrong ?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(){
unsigned long *f = (unsigned long *)malloc( 1000 * sizeof(unsign...
hi,
my question is like if there exists implicit typecasting in c then why it is necessary to typecast explicitly when we use malloc().
Okey so I am doing this project in C. Building a simple typing tutor. I know the rules of this site that no direct help in project or assignment work. So I will be doing this on my own. But I ...
Hi, I'm trying to read an INI file in C, everything compiles fine except when i try running the application i get a access violation error and app terminates:
GetPrivateProfileString("TEST"...
Hi,
I would like to know how to make sure the pthread I create with "pthread_create" is still alive? Is there any function I can use to make sure the pthreads are still running??
Xenia
I created a http server using C. Currently, I am able to return a html file to the browser in 1 chunk. What I need is to be able to send my whole response back to the browser in parts. Can any...
Esteemed Guru's,
I am an Oracle DBA and one of the developer's insists that an Oracle "include" library contains a module with a "main" entry point.
The error he gets when trying to comp...
Have happily been accessing my COM dll from C++ Client but now need to access from a C Client.
First problem I get is on compilation "error C2773: #import only available in C++ compiler". Bu...
Hello,
I see very often this construction in header files (e.g. in header file My_class.h)
#ifndef MY_CLASS_H
#define MY_CLASS_H 1
class My_Class { ... };
#endif
Could you expl...
Hi,
I want to see (by eye) the content in the fuffer after Scanf, something like
for(i=1;i<3;i++)
{
printf("Input a: ");
scanf("a=%f",&a);
printf("After scanf, the buffe...
Hi,
I can show the size of device free, used, and total after format. However, I need to obtain size of my device before i format. For example, I have a 512 MB SD Card. My program should d...
If I have two character arrays and need to compare them from the beginning to see how much of them is the same, is there anything i could use that is faster than memcmp on each individual char...
The deadline has passed, I submitted what I had (below) and am now just interested in finding out what I am doing wrong.
I am still waiting on feedback from my first program from my Instructo...
Why doesn't C have nested functions?
Hi Experts,
I am writing a program in C to do ls -l , every thing is works fine, but the only problem is function 'sperm()' is not working for getting the permission, do you have any idea w...
I get some hex-values via argv, for example: 41
Now, I want to get the character representing this hex-value (for the above example: A).
How to do?
I have a question about how wchar_t works. I understand that wchar_t is either two or four bytes, depending on your system, and allows a much wider range of characters to be stored than would...
I've been using this function to convert integers into wide character strings, but I realized the function fails if the integer to be converted is 0. This happens because the for loop breaks ...