Function nest_get
#include <macaw.h>int nest_get(
const char *service,
const char *account,
char *buf,
int size
);
Reads back a password your program saved with nest_set.
Parameters
serviceconst char *- What the password is for.
accountconst char *- Whose password it is.
NULLis the same as"". bufchar *- Where the password goes. Never print it or save it anywhere else.
sizeint- How many bytes
bufholds. A password that doesn't fit is cut short.
Returns int
The password's whole length, or -1 if there isn't one saved.
In Saved passwords (Nestchain), with nest_set, nest_has, nest_remove, nest_list, nest_listitem, nest_listlabel, nest_listchanged, nest_request, nest_choose, nest_keep.