Advertisement

Experts Exchange is proud to recognize the top Experts of 2008. Alter egos aside, these Experts are technological superheroes!

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested C Solutions: 76 - 100 of 953
 
Hi, How to list files in a directory using a C Program ? Thanks Praveen Parmar
Hi, Is there any way to compute pixels out of given font size. I mean how many pixels are there in one point. I know there should be some formula to calculate this as it depends upon curren...
Hi, I would like to read a whole file binary and write it to another new file. Actually I want to make a file transfer between 2 pc´s trough the rs232 interface, but first of all I need to k...
I have an example from Bloomberg that compiles fine in Visual Studio 2003 but gives an error in VS 2008 ORCAS Beta 1.  The only changes I made is made it a .cpp instead of a .c and put in plac...
Hello! I want to write programm in C that will print on the screen IP address I got when I connected to the internet. And I need help. When I tryed with gethostname and gethostbyname it pr...
hi, i have a working code here, but my problem is that i'm doing "void SORTIT(char* aWords[][MAX_STRING_LENGTH]);" but the question asks us to do with "void SORTIT(char *array[])" i ...
I need to write a quick interface program (c or c++) to replace a perl script. The problem is that it has to do some redirection. I need to redirect STDIN to a file and then redirect STDOUT to...
/usr/bin/ld: cannot find -lglut How to fix?
I use the function below: ***************         for (i = 0; i < numberOfRows; i++) {             iOff = i*halfColumns;             for (j = 0; j < halfColumns; j++) {                ...
Hi, I'm trying to convert a binary number to base 2, base 8 and hexadecimal. I've successfully wrote the conversion to base 2 and base 8. I need help with the hexadecimal. I'm not sure how ...
I am programming with sockets in Linux. I have a blocking socket and I want the following: When I call recv(), I want to know how many bytes of data there is in total, then I want to construct...
Hello, do you know some good link which could give be good basis about bit tricks in C++? With lots of examples? I know what bit operators do (this is redundant info for me later). I need to...
I need to execute a program and redirect its stdout/stderr to the stdin. Can someone please tell me how to do this or point me in  the right direction.
Hi, I got a sample of code to bind ip address :    bzero(&sin,sizeof(sin));    sin.sin_family=AF_INET;    sin.sin_addr.s_addr=INADDR_ANY;    sin.sin_port=htons(PORT);    bind(sock_d...
Dear Experts, Iam using Visual C++ compiler on windows xp. I want to code a function in C such that it returns the current time in the format  HOURS:MINUTES:SECONDS:MILLISECONDS Pleas...
What is equivalent to getch in Unix C. I need a function to get keystroke and don't want to wait for the <ENTER> key. I tried getchar(), it waits for the <ENTER> key. OS           : AIX 4.2.1...
I am writing c programms that sends file thru socket. The client read a binary file and send the content to the server program thru socket. And the client program receive the content of the fi...
Please consider following code Snippet: typedef struct customer_no_type_s {    unsigned len ;    unsigned char str[30]; } customer_no_type; customer_no_type get_customer_pn(void) {...
I have some low level drivers I'm working on which require the use of bitfields for hardware registers.  I'm writing the drivers to be platform independant. Presently, I've taken care of En...
The input is an arithmetic expression string ((2+3.5)*2)/4+2  How do we convert this to postfix (i mean about 3.5) How do we evaluate the postfix expression? And finally what do we do in...
Hello, I'd like to be able to pass an argument from the 'make' command to a variable contained in the makefile.  I understand that there are alternatives (such as hard-coding) but I have an...
Can anyone tell me what's the most common cause of error: invalid type argument of 'unary *'?
Hi, experts: I develop a server-client application. At server side, I use Java language. At client side, I use C language. Key is known between server and client. At server side, 1) signa...
/*     Simple, simple pipe() sample.     Main program stdout -> child stdin -> chile stdout -> Main program stdout     cc spipe.c -o spipe     To run     >./spipe     any text     any...
Hello group, Can somebody tell me where I can learn how to read data when they are stored as Big-Endian and Little-Endian. I'm back to C after years and don't know how to do this. I'm deali...