extern c in arraylist