Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested C Solutions: 201 - 225 of 2136
 
My question is about how "Least Recently Used" (LRU) algorithms are actually implemented.  For example, if you are writing a database program and you have a cache which keeps commonly used pag...
HOW TO FIND THE LENGTH OF A STRING WITHOUT USING STRLEN METHOD
can any one provide me algorithm / with pgm for the Shortest Job First algoritm for both preempitive and non preempitive
I want t beable to use the batch file "ERRORLEVEL" based on the return value of my program.   My program looks something like this: int main(void) {   If (x == TRUE)          return 1...
I compiled the code below using: gcc voidpointer.c -o voidpointer -Wall and I got a warning message: Warning: unsigned int format, pointer arg (arg 3) Also, please answer my question (comment...
i have an unsorted text file as an input to my application. I've been trying to srot that text file but i can't seem to find a proper way to do it. I'm sure there are several ways to to sor...
Hello, I am using an IAR Compiler ( C ). I have several connected files, in the first file I defined: typedef enum {JUMP= 1 ,                         WALK=2,                        ...
The code below is used in order to try and cast / convert a structure to a char pointer. Why do i want to do this? I want to print the representing bytes so that i afterwards can cast from a s...
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...
Hello, I am having an issue with a function I have written accepting input as a string and converting it to a float usint atof().  When it is run it accepts the string beutifully but does f...
Hello, I'm trying to encrypt a symmetric key using RSA with OpenSSL my code looks something like (for mingw) : in the example the symmetric key is replaced by the word "hello" int main...
Hi guys, I have a Turbo C 3.0 compiler and I got an error when linking the program that says UNABLE TO OPEN FILE TV.LIB! I did a search it in my computer and I can't find it! Does someon...
i have a project to do in Visual C++ which requires delays like 4 milliseconds! unlike in Turbo C  the  "delay(int milli)" doesnt work!  can anyone help me with a simple time delay? Thanks
Hello, I have the following case: I want my function to calculate something and return me back 2 pointers. Because function can return only one parameter, I pass an adress on the second p...
Hi all, How can i convert a double number to an array of char, or a pointer to char?? Ex: double d = 593.90; char mesg[255]; // or char * mesg; how the variable mesg can obtain "5...
hi, i know this question has been answer a million times before but for some reason i can't find a proper answer to this problem i have a char * that consists in 3 values separated by com...
I am using an old C compiler for an 8051 microcontroller. There is no strtol function, althoiugh I have sprintf, printf. I am trying to convert 2 hex chars within a buffer to a single char...
I am trying to use libcurl to access remote web pages via a bank of anonymous web proxies.  I can go to a particular web proxy URL (for example http://www.antifilters.info/) and retrieve their...
Hi, I am writing a makefile rule and I want to write a conditional statement. What is the correct syntax to do this? Thanks Jamie rule_1:        @ if [ ${one} == ${two}] ; then \  ...
int i, j; i=10; i < 10 ?  j = 2 ;  j = 3 gives error Lvalue Required But .. i < 10 ?  j = 2 ; ( j = 3 )  works. WHY ?
which is the easiest way to invert a matrix in  C?
Where can I get the code from The C Progaramming Language, and the solutions to the exercises in it (I have the book but hate typing) I can't find a copy of it anywhere, but my preference woul...
Hi, I remember in C++, you can do a  cin>>ws to read the white space, can I do the similar thing in C? Thanks!
I want to get a handle on these win32 stuff.  I understand that in stdcall the function clean up the stack before  returning. cdecl the caller clean up the stack? what about the declspec and t...
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:        ...