Search:

Type: Posts; User: ramtinraji

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    3,902

    My input file consists of 100 lines of ascii text...

    My input file consists of 100 lines of ascii text which should be sorted. I have defined my textBuffer as an array of 100 strings and everywhere, loops and etc., its 100. So its not a magic number....
  2. Replies
    8
    Views
    3,902

    Thank you very much guys. I solved the problem....

    Thank you very much guys. I solved the problem. You are right Quzah, I just put constant 100 (as in 100 strings) instead of stringlen and it worked!! :D

    Thanks again Salem and Quzah. GoodDay :)
  3. Replies
    8
    Views
    3,902

    Thank you; So what should I do? Hoever I've seen...

    Thank you; So what should I do? Hoever I've seen qsort usage on such an array which is fine. so what do you think? Even when I try to qsort it using constants, I encounter Segmentation fault error :...
  4. Replies
    8
    Views
    3,902

    Allocated memory size is not correct.

    Hi everybody,

    I'm writing a simple program which is declaring an array of strings and allocating some space using malloc(). Then, Im gonna sort it using qsort(), so i need the size of my array,...
Results 1 to 4 of 4