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...
Type: Posts; User: prakash0104
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...
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...
thanks for the reply,
the size is around 1 million...
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*));...
here you go~~
code not tested!!
main(){
char *input="(2+3)+((4-6)";
int flag=0;
Sorry, i missed some codes
typedef struct posPoolspace{
char **posList;
int listSize;
}posPool;
typedef struct trieCDT {
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;
thanks , its ok now~~
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...
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
...