Thread: Get One item from an array..

Get One item from an array..

From
"Cristian Prieto"
Date:
Hi! I have a little trouble with a SP written in C language, I have a
function which get an array as parameter, I know I could get the array using
ArrayType *elements = PG_GETARG_ARRAY_P(n) but what about if I only want to
get just the N element from the array? For example the 3 element of this
array, I haven't check a function named Datum *item = ARR_GETITEM(n), is
there any similar function or a simple way to get it?

Thank you a lot!!! I'm a really newbie in SPs written in C language.