Hi I am getting error in the following line....
int m=0;
for(l=0; txt[l] != '\0'; l++)
{
if((txt[l] != ' ') && (txt[l] != '\r') (txt[l] != '\n'))
{
str[m]=txt[l];
m++;
}...
Hello,
Anybody know the equivilant for unistd.h in Windows?
A friend of mine needs it, cause in Linux this file provides the programmer with a set of functions that can be easily executed ...
Syncsort ? Did you use this utility? Can I use it to sort a fixed width ascii file?
What would be the syntax, having the input file name infile and the output xx.x?
Thanks
Emad
Hi,
My question is how can i get rid of the blank spaces that are in a string when an input is an entire sentence.
So for example if the input was :
Hello Everyone In The World
I wou...
What is the best way to read a csv file in C (not C# or C++ just C)? I tried using strtok and that works but it split stuff that shoudn't be split up.
Thanks for the help.
Thomas
i want to know that how we can find out a name of an directory or folder name by c or c++.
we can search a file name by using "findfrist()" funtion.
it search current directory for files but...
Is it possible to do a condition compile in unix/linux using a makefile. I wrote a server and a client and need to compile the server selectively based on which OS the makefile is run.
i...
HI, I wrote a program to evaluate the magic square using dynamic 2D arrays. I need to free the memory location and don't know how. I don't think I did it right because I don't know how to chec...
Hi,
I'm just reviewing the ANSI C date and time functions and was wondering how to do datetime caculations. I have a flat text text file which stores the start date, start time and end dat...
Im new to C. I need code to delete 0 byte files from the current directory, and if an argument is given, any subdirectories of the directory the executable is in also. I need this to work on D...
In UNIX, there is the 'kill' command, is there anything in DOS that is similar to the UNIX command?
Hi All,
I have written a simple program to execute a shell script by forking a child process.
The program does execute the script 4 times by forking 4 child processes one for each.
I h...
Hi!
I'm looking for write a make file...
I tried to do it after reading different tutorial, but it doesn't work properly...
My makefile had to use gcc and at least the flag -Wall and ...
How to code the Shortest Remaining Time First(SRTF)? I'm having a hard time on coding the pre-emptive part of the algorithm. Thanks a lot.
Hello,
I was trying to build a project in VC++ environment. The project includes a .CPP file and rest all .C source files. In the .CPP source file I was trying to call a C function. While bu...
Hi, if have any of you can help me figure this one out, I'll be very grateful. I had to write a program to convert a binary number to base 10,8 and hex and convert base 2, 8, 16 to a binary n...
First of all. The Tax Calculation program asking about Del Mar and Encinitas is a homework question so mr. Engineer2006 is completley full of (you know what).
I just want to know about the...
I would like to have a function that will check and replace occurrences of ":20" with a " " in a given path.
"/location3/Kunder/Danapak/Toms/NX-0185:20Guld:20Barre:20Mælk/Arbejdje.pdf"
sh...
the task is:
a) using the BIOS 14h serial port services, write a program in C (inline ASM when necessary) to read a char from the
keyboard,send it to the COM2 port,recieve back from COM...
Hi,
I have some 1000 lines of code which converts binary formatted log file obtained from the server to ascii readable format.When I am compiling it on windows using cygwin as IDE,I am able...
I am trying to link a c progam in x64 using VS2005. This is the error I get. Any suggestions?
Error 1 error LNK2019: unresolved external symbol main referenced in function __tmainCRTStar...
Can anyone tell me the difference between an HWND datatyoe and a HANDLE datatype.
I am writing an interface to an old C library that uses these types and I need to know that .NET equivalents....
I'm calling ShellExecute to run an EXE file. This EXE file returns a value. How do I catch That return value?
Saranga Amarasinghe
Analyst/Programmer
Hi,
To use mod in C, i use %
num1=9%7=2
how do i do a negative number ?
num2= -9%7 ?
Thanks
Currently I want to write a dll in ANSI C, and I will call an external program to help to get the job done. Does any one know which C function can call an external program and passs argument t...