lambda, extern C, side effects