Add function attribute null (like non-null, but requires function parameters to be NULL) and use it on realpath(3).