hi, i have written a program call generate_files and i wan to call it in another problem using exec. i noe the way to fork and call it but how do i noe the path of my generate_files program w...
Hi,
I have 2 structers which map to some data that can reference one another.
basically, I start with a list of boxes. and each box can contain 0 or more boxes (the count is the immedia...
hi,
is it okay that ftell and strlen gives you same answer?
thansk..
Hi!
I'm just curious about a strange behavior which happens when i try to use a C program written on my Mac on some other pc...
I have an iMac 20" with an intel dual core and i'm writing...
Hi experts,
I am researching hash functions on http://www.burtleburtle.net/bob/c/lookup3.c. Assume that I use hash function hashlittle() and I have some key words like "this", "is", "yahoo...
hi,
i have an array like this:
char **arr;
i call a function like this:
myfunc(arr); --in this function values are assigned and memory allocated....
however, when i call back in m...
hi,
i am doing this with fread and i get ??? marks..could anyone pls help...thanks
char *t;
t=(char *)malloc(28);
fread(t,sizeof(char),28,fp);
t[9]='\0';
printf("%s\n",t);
Hi All,
I have to generate a script in LoadRunner (which uses C) which read a xml file and send over to some url. Can someone send me the code for reading the file in C. Remeber its a huge fi...
I attatched my simple encryption/decryption program which I have started by just adding 1 to the ascii values when encrypting and subtracting 1 when decrypting. When I choose only one option o...
what is the use of a function pointer in programs
any specific , that a function pointer will prove effective in coding
Given a binary search tree how do we find the kth largest element?
can any one please suggest an algorithm 4 the above problem?
thanks.
Hello List,
When the program reaches line 90, I am not sure why I would get no content in ctxt->sdiUser and the strange "s" in ctxt->sdiRequest, as shown in the snapshot in the png file attac...
Softwar Library externs a symbol something like follows:
extern const some_struct_type rtos_config;
My application links this software library. During link time I get the following erro...
Hi I have a pointer to a wchar pointer which first gets allocated the size of the array:
wchar_t** wargv;
wargv = (wchar_t**)malloc(argc);
Then for every char pointer that it points to,...
I am currently working on Structures in C Programming. I am almost finished with one solving Rational equations. I now have to use a Simplify function using gcd in order to simplify the equati...
read(fd, buffer, 1024) will attempts to read a size of 1024 from the object referenced by the descriptor into the buffer pointed to by buffer. My problem is when im trying to store buffer into...
Hi,
I have a C function, attached, which is usually called from a ProCobol program. I need to call this from SQL, passing in information taken from the database.
Is there a way of doing th...
I need to get error and information messages to the user if the program finds mistakes. I am using messagebox in a win32 console application but the messagebox appears underneath other windows...
Hi, i was thinking of creating a linked list like the one in the example. however, to add a node u will always need to pass the list returned from linked_list_new(). is there anyway to modify ...
I need help -- I need a simple client server game in c code- I am supposed to write it utilizing icmp
hi,
i have an array like this:
char **array which i want to store like this
cat
dog
rat
an array of pointers...
array=calloc(10,sizeof(char*));
then, i have a loop....
fo...
hello, what is the correct wat to pass in a array of strings to another function?
char *collection[];
void somefunction() {
generate_code(collection);
}
void generate_code(char* c[]) {
...
I would appreciate any help on trying to compare two strings in my program. In this wof program when the player tries to solve the puzzle it shouldn't matter if he should have to enter charac...
hi, im having a tough time thinking on how to create pipings for the following examples. can anyone explain or provide some sample code to get me started and done?
ls :: awk {print$1;} /*...
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...