getmementry
extern int getmementry(int *, int *);
if (getmementry(&i, buf))
getmementry(&i, buf);
int getmementry(int *, int *);