version 1.2.4.1, 2012/02/10 16:52:37
|
version 1.2.4.3, 2012/02/10 23:20:06
|
Line 35 int main()
|
Line 35 int main()
|
*/ |
*/ |
|
|
sess_initSession(SHARED_IPC, "/tmp/abra-kadabra-123", &n); |
sess_initSession(SHARED_IPC, "/tmp/abra-kadabra-123", &n); |
ALLOC_MEMORY("/tmp/abra-kadabra-123", 1003, 4096, n); | ALLOC_MEMORY(1003, 4096, n); |
if (sess_GetErrno()) { |
if (sess_GetErrno()) { |
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
printf("Error:: #%d - %s\n", sess_GetErrno(), sess_GetError()); |
return 2; |
return 2; |
Line 67 int main()
|
Line 67 int main()
|
printf("end %p>>> String=%s\n", n->addr, n->addr); |
printf("end %p>>> String=%s\n", n->addr, n->addr); |
DETACH_MEMORY(n); |
DETACH_MEMORY(n); |
getchar(); |
getchar(); |
FREE_MEMORY("/tmp/abra-kadabra-123", n); | FREE_MEMORY(n); |
sess_freeSession("/tmp/abra-kadabra-123", &n); | sess_freeSession(&n); |
return 0; |
return 0; |
} |
} |