changed c99 to gnu11 in CFLAGS
use getint for id search