Closed goog closed 8 years ago
You are adding the address of path twice to the set, therefore you will only have one element after the two additions. If you want to add char* strings to a hash set, you have to copy them to the heap yourself, pbl will not do that for you. Plus you should also set a char* string specific compare function to the hash set.
thx
below is the log
Set element does not support the long string like "0 0 127.0.0.1:22 127.0.0.1:55648 ESTABLISHED -"?