⚙️ function core_get_obj_from_pos(...)

Last updated:4/16/2026

URL

https://github.com/42core-team/monorepo/blob/dev/bots/c/client_lib/src/public/get.c#L12

Description

Get any object based on its position.

Signature

t_obj *core_get_obj_from_pos(t_pos pos);

Parameters

  • t_pos pos: The position of the object the function should get

Return

  • t_obj *: The object at the position or NULL if no such object exists.

Examples

bool ft_is_pos_empty(t_pos pos)
{
	return core_get_obj_from_pos(pos) == NULL;
}