hi,
in programming point of view...is it better to use malloc or calloc for characters...
calloc initializes the input to zeros and malloc does not...does it mean that calloc is ineffici...
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...
Hi,
I have a very project written with C.
Another project, which is derived from this one and includes some additional and removed parts.
I would like to find out
-the similarity of thes...
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 ...
In some C code I want to use the system() command to start another C program with no connections to the origoinal C program. As I understand it the system() call will not return until the "oth...
Hi,experts:
I write a project by using Visual C++ 6.0
The project can be downloaded :
http://140.118.107.213/personal/master96/james/console_j2k.rar
After completing the build, I execute t...
Hello,
I've encountered a problem compiling a library written in Fortran and C on a 64bit system. I've tested the library on a 32bit system and it is running fine, so the problem must be wi...
Hello Experts,
Two questions:
Firstly, I'm trying to output the results of running a system command using the using the execl function,
but i'm getting the stderr as well as the stdout....
Hi,
I want to copy a binary file... but when i compair two file with diff command it comes difference.. why..? here is my code
int main()
{
FILE *input1 = NULL;
FILE *inpu...
Hi Folks,
I'm trying to build a simple application that can dial a phone number of another modem (connected to a PC) or can recieve a call from another modem.
I've expiramented both ways...
Hello,
Can anyone please explain in simple terms what the following function does, so I can try to find a VB.Net equivalent ?
Thank you.
void set_name(unsigned char *nm, struct prs *p...
struct Data {
int size ;
int age ;
...
Hello all:
I currently have a replace substring function that I implemented to do just that replace all occurences of a substring in a given string. I am making use of this function in a c ...
Hi
Has anybody worked on coding a JPEG algorithm in C?
I have been working on this for a while, but have now got a problem. I have reached the Huffman encoding stage of the project. I a...
find the width of a binary tree at the level where the most nodes are found.
hey everybody,
i'm trying to create a scaled down version of tar for linux os.
I am running into trouble when I am trying to use the stat function to get information about a current file in ...
My Question is rather simple :
char local[1000]; //string
int j=0;
char anything[10];
for(j=0;j<10;j++){
strcpy(anything,(char *)(j+48));
strcat(local,qualquer);
...
Hello I am haveing a problem creating a richedit control.I load the riched.dll in the window main like so......
if(!LoadLibrary("riched32.dll")){
MessageBox(hwnd, "Could not ...
//program to determine equal spacing for pickets
#include <stdio.h> //scanf & printf
#include <conio.h> //getch
# include <ctype.h> //toupper
#define TRUE 1
#define FALSE !TR...
#include <stdio.h>
main()
{
int i=3;
printf("\nPrefix :%d %d %d\n",--i,i, --i);
i=3;
printf("\nPostfix :%d %d %d\n",i--,i, i--);
}
The o/p of the above prog is
Prefix :1 1 1
...
i'm a little rusty with ansi C (and turbo C) so i have these questions:
1. how do i encode an expression in the form a^b (b is not an integer) ? do i need math.h for this?
2. i'm getting...
I want to know how to use year, month, day, hour, minute, second as input and calculate the corresponding julian day?
Hi all,
I was hoping 2 get help on how 2 access database using C.
My program requires me 2 read data fr a few tables before updating the modified values back.
Really appreciate anyone can...
Hello,
I think the best way to store date is an int, and time is a float (same way as Delphi, Excel, etc use them).
Now, I need a file which contains the following functions:
IsDateFo...
(500 pts)
The first part explains the program and what it should do(this is just the first part). The second part is my sourcecode.It compiles correctly,btw.I know it has something to do wit...