ok, here is whole code
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
//#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
Type: Posts; User: alavardi
ok, here is whole code
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
//#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
the program partitions a file to several files then creates processes to sort them.
fpArray = malloc ( numOfProcesses * sizeof( FILE* ) );
processIDs = malloc ( numOfProcesses * sizeof...
once again thanks a lot :)
another problem
i want to partition a text file into several files with the below code but each new created file only contains last partition of the input file
int main(){
FILE* inputFile;...
thanks a lot
hi all
i want to create an array of files. but the size of the array is not given initially, but will be read from user input. i tried this but it didn't work.
#include <stdlib.h>
#include...
i checked the code with valgrind (1.9.6) and it gives these errors
Invalid write of size 1
==2143== at 0x4015FBE9: strcpy (in /usr/lib/valgrind/valgrind.so)
==2143== by 0x804864D:...
well i started programming in c very recently, after programming in java for sometime. anyway thx for your help, below is the last version of my code
#include <stdio.h>
#include <string.h>...
thanks a lot andy, it works very well
hi all,
i want to read strings from a file and store them in a binary search tree. i can print the strings to the screen, but when i try to store them in the tree, only last string is stored in the...