Search:

Type: Posts; User: alavardi

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,405

    ok, here is whole code #include ...

    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>
  2. Replies
    2
    Views
    1,405

    freeing problem with concurrent processes

    the program partitions a file to several files then creates processes to sort them.


    fpArray = malloc ( numOfProcesses * sizeof( FILE* ) );
    processIDs = malloc ( numOfProcesses * sizeof...
  3. Replies
    6
    Views
    10,007

    once again thanks a lot :)

    once again thanks a lot :)
  4. Replies
    6
    Views
    10,007

    another problem i want to partition a text file...

    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;...
  5. Replies
    6
    Views
    10,007

    thanks a lot

    thanks a lot
  6. Replies
    6
    Views
    10,007

    how to create an array of pointers to files

    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...
  7. i checked the code with valgrind (1.9.6) and it...

    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:...
  8. well i started programming in c very recently,...

    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>...
  9. thanks a lot andy, it works very well

    thanks a lot andy, it works very well
  10. problem in storing data in a binary search tree

    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...
Results 1 to 10 of 10