I need to use good 'ole character arrays in a C++ class. Also, this is an embedded system so no dynamic memory allocation.
I've declared the array as a private member:
private:
...
I have a program that is intended to be a spell checker and I am trying to get it to read one line at time so that the output for the program is correct. It does read the file properly and ret...
I have two files - client and server. I can get them to connect using tcp sockets but need to know once a connection is established how can i then have the client send a message to the server ...
Hi all,
I need to launch a perl process from a c program. I cannot use a separate file for the perl script due to security reasons. I need to embed the entire perl script inside c as a char...
hello experts,
how do i use any internal command of Dos using System command of Turbo C/C++.
i was trying - system("Del myfile.txt")
but it didnt delted the file.
i have included proc...
I was wondering if it would be possible to create a queue data structure in C that can enqueue elements based on the type user specifies at the point where he uses it .
Something like templ...
I am trying to implement a Circular linked list, but i am having problem making the last ptr point back to the first element (to complete the circle)
This is what i have so far
Any help...
I'm working with libecal to manage and add events to Evolution. Evolution date/time events are set to UTC timezone. No matter what i do the events in the calendar are always entered according ...
hi,
i am trying to find memory usage of my program. One option is using top but it is not giving the exact value. is there any other way ?
thanks
HI.
I need directions how to develop a code using C language (Queues) which simulate the operation of an airport. I have to create two queues (1 for landing and 1 for taking off), to give the...
I am trying to use LibTiff to convert a monochrome TIFF to a 1 bit BMP image. The TIFF image is coming into the dll as a pointer. I have overrode the LibTiff read functions so that I can han...
I am trying to get this spell check program that I have done so far with a little help. It is not compiling and I need to get it working. can you please take a look and give me any pointers th...
Hi,
I am trying to follow a tutorial on using rpcgen. I am new to the C language so I'm just trying to follow exactly as the tutorial says. Please see http://www.cs.cf.ac.uk/Dave/C/node34.h...
How can I cast a char pointer to an char array[9][100] ?
- to prevent the warning message when compiled
- it does work OK
- see test program attached
Thanks, Owen
What is significance of Stack Alignment, when compared to Data Alignment(Word Aligned/Word Addressable memory)?
In case of Data Alignment, I can relate it to a problem (code snippet attache...
Probably too easy to Google but easier to just ask the experts :P
I have a call to pthread_create(&tid, &attr, workthread, NULL);
I want to be able to send a mixed array as the paramete...
I am trying simulate multiple requests that are handled by threads . When a request is created it is pushed in a queue . The main on inserting value into queue signals the condition wait varia...
Hi,
1) How do I copy a string like "gfgfgv" into an: unsigned char aa[500] ?
I can't use strcpy(aa,"gfgfgv") and I don't know how to cast it.
Thanks
I'm trying to install openssl on my windows xp computer for compiling a C program. I have installed .NET 1.1 SDK and the psdk to I have all of the path that I know about setup. But I get all t...
When I compile this in GCC with the -Wall option (required in my class) I get:
Warning: statement with no effect
This is on the lines where newX and newY are assigned values. I don't und...
When i put the target IP as 127.0.1.1, the program is working fine, can catch blocked & open ports. However, when i try to scan remotely, i get connection timed out! Can you tell me why?
Lo...
I'm fairly new to C and have come to realize that conio.h isn't part of the standard ANSI C library. Unfortunately I have a data validation project assigned for class that can't really get don...
Hello group,
Since I'm passing some number to main() using char* argv[]
I need to assign them to some format specifiers (%d) in sprintf(), now having
sprintf(cmdstring, "/usr/user1/pr...
I'm writing an application in Delphi (using D2005) calling a DLL written in C using MinGW. So far it works fine, BUT I would like to debug the DLL using MinGW. I have added a host application ...
I am trying to write a program that produce all possible out come of flipping a coin "x" number of times, it has to be recursive and it produce an out come similar to this:
coin flipped 2 tim...