/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to src/DynamicArray.h

  • Committer: Gustav Hatvigsson
  • Date: 2014-01-29 14:37:25 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140129143725-yan5tlm7mj21a2g1
* Started working on some tests, they do not work... yet.
  I will have to figure out how to do this, it should not be that hard
  :-)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
 
72
72
 
73
73
/**
 
74
 * Get the size of the array, this is not the same as the length of the array.
 
75
 * The size is the number of elements that can be allocated without resizing
 
76
 * the array.
 
77
 * 
 
78
 * To get the length of the array use dynamic_array_len ().
 
79
 */
 
80
size_t dynamic_array_size (DynamicArray * self);
 
81
 
 
82
 
 
83
/**
74
84
 * Add an item to the array.
75
85
 */
76
86
void dynamic_array_add (DynamicArray * self, void * item);
77
87
 
78
88
/**
79
 
 * Dumps a copy of the. Must be cast.
 
89
 * Dumps a copy of the array. Must be cast.
80
90
 * 
81
91
 * Is not freed when the dynamic array is freed.
82
92
 *