codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
#include <stdio.h> #include <stdlib.h> #include "object.h" int main(void) { Test *test; test = Test_new(100); printf("refcount = %d\n", test->_refcount); AddRef(test); printf("refcount = %d\n", test->_refcount); Release(test); printf("refcount = %d\n", test->_refcount); Release(test); return 0; }
Private
[
?
]
Run code
Submit