X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Farray%2Farray.h;h=007c51b8f97e1095c2046245cbbc536687a7d282;hp=fb4701359e03889e4e5be6c61ae40dd46b0f473d;hb=d79a327642580df2707082c32ce5370bb517e18c;hpb=117cc6cdab716e87dc286fb1f32a62f820bc90be;ds=sidebyside diff --git a/ccan/array/array.h b/ccan/array/array.h index fb470135..007c51b8 100644 --- a/ccan/array/array.h +++ b/ccan/array/array.h @@ -126,7 +126,7 @@ array_growalloc(array, newAlloc) sees if the array can currently hold newAlloc i if not, it increases the alloc to satisfy this requirement, allocating slack space to avoid having to reallocate for every size increment. -array_from_string(array, str) copys a string to an array_char. +array_from_string(array, str) copies a string to an array_char. array_push(array, item) pushes an item to the end of the array. array_pop_nocheck(array) pops it back out. Be sure there is at least one item in the array before calling.