version 1.2.4.2, 2012/02/10 23:15:27
|
version 1.3.2.1, 2012/02/15 16:10:55
|
Line 34 int main()
|
Line 34 int main()
|
freeSession(NULL, &n); |
freeSession(NULL, &n); |
*/ |
*/ |
|
|
sess_initSession(SHARED_IPC, "/tmp/abra-kadabra-123", &n); | sess_initSession(SHARED_MAP, "/tmp/abra-kadabra-123", &n); |
ALLOC_MEMORY(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()); |
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(n, 42); | FREE_MEMORY(n); |
sess_freeSession(&n); |
sess_freeSession(&n); |
return 0; |
return 0; |
} |
} |