[ create a new paste ] login | about

Link: http://codepad.org/lHtmgdkT    [ raw code | fork ]

nvsofts - C, pasted on Dec 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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;
}


Create a new paste based on this one


Comments: