#include <stdio.h>
#include <stdlib.h>
void get_extrema(int quadrant, int **extrema)
{
if (quadrant == 1)
{
(*extrema)[0] = 0;
(*extrema)[1] = 90;
}
else if (quadrant == 2)
{
(*extrema)[0] = -90;
(*extrema)[1] = 0;
}
}
void print(int* arr)
{
}
int main(void)
{
int *extrema
= malloc(2*sizeof(int)); get_extrema(1,&extrema);
print(extrema);
get_extrema(2,&extrema);
print(extrema);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCnZvaWQgZ2V0X2V4dHJlbWEoaW50IHF1YWRyYW50LCBpbnQgKipleHRyZW1hKQp7CiAgaWYgKHF1YWRyYW50ID09IDEpCiAgewogICAgKCpleHRyZW1hKVswXSA9IDA7CiAgICAoKmV4dHJlbWEpWzFdID0gOTA7CiAgfQogIGVsc2UgaWYgKHF1YWRyYW50ID09IDIpCiAgewogICAgKCpleHRyZW1hKVswXSA9IC05MDsKICAgICgqZXh0cmVtYSlbMV0gPSAwOwogIH0KfQoKdm9pZCBwcmludChpbnQqIGFycikKewogICAgICBwcmludGYoIiVpIixhcnJbMF0pOwogICAgICBwcmludGYoIiwiKTsKICAgICAgcHJpbnRmKCIlaVxuIixhcnJbMV0pOwp9CgppbnQgbWFpbih2b2lkKQp7CiAgICBpbnQgKmV4dHJlbWEgPSBtYWxsb2MoMipzaXplb2YoaW50KSk7CiAgICBnZXRfZXh0cmVtYSgxLCZleHRyZW1hKTsKICAgIHByaW50KGV4dHJlbWEpOwogICAgZ2V0X2V4dHJlbWEoMiwmZXh0cmVtYSk7CiAgICBwcmludChleHRyZW1hKTsKfQ==