Search:

Type: Posts; User: prakash0104

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    9,127

    I am not sure if that is the problem... as you...

    I am not sure if that is the problem... as you can see the tries in the main() function are created and destroyed twice,,, the first destroy doesn't produce error just the second one(last line of...
  2. Replies
    14
    Views
    9,127

    there are about 500,000 for the plist, here is...

    there are about 500,000 for the plist,

    here is the whole code, at first i programmed with static array ,, then i wanted to change it to dynamic,,, this is why i got the error,,

    i still get...
  3. Replies
    14
    Views
    9,127

    thanks for the reply, the size is around 1...

    thanks for the reply,
    the size is around 1 million...
  4. Replies
    14
    Views
    9,127

    itCbitC & R.Stiltskin thanks so much,,, i...

    itCbitC & R.Stiltskin thanks so much,,,
    i solved the error with some changes


    char **plist=(trie->pool->posList);
    plist =realloc(plist,(trie->pool->listSize+1)*sizeof(char*));...
  5. Replies
    30
    Views
    2,886

    here you go~~ code not tested!! ...

    here you go~~

    code not tested!!



    main(){

    char *input="(2+3)+((4-6)";
    int flag=0;
  6. Replies
    14
    Views
    9,127

    Sorry, i missed some codes typedef struct...

    Sorry, i missed some codes



    typedef struct posPoolspace{
    char **posList;
    int listSize;
    }posPool;

    typedef struct trieCDT {
  7. Replies
    14
    Views
    9,127

    pointer to pointer realloc problem

    hi everyone,

    i have another problem with realloc with a pointer to a pointer,

    here is the code:


    typedef struct posPoolspace{
    char **posList;
    int listSize;
  8. Replies
    2
    Views
    2,049

    thanks , its ok now~~

    thanks , its ok now~~
  9. Replies
    2
    Views
    2,049

    erors from Valgrind ,,

    Hi every one,
    i just started c programming... my program(some parts i got it from some site) compiles fine ,, but when i check the program with valgrind ,,, iget the errors..

    my code

    trie.h...
  10. Replies
    1
    Views
    1,222

    memory allocation error

    hi every one
    i have a problem with memory overlap for malloced struct.
    I am trying to load dictionaries but,, after loading them i found that they have some problem

    here is the example
    ...
Results 1 to 10 of 10