• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/docs_src/ref/am_misc/
1m4_ignore([dnl
2#include <sys/types.h>
3
4#include <db.h>
5
6int foo();
7
8DB *dbp;
9DBT key, data;
10
11int
12main()
13{
14	(void)foo();
15	return (0);
16}
17
18int
19foo()
20{])
21m4_indent([dnl
22int ret;
23if ((ret = dbp-__GT__put(dbp, NULL, &key, &data, 0)) != 0) {
24	fprintf(stderr, "put failed: %s\n", db_strerror(ret));
25	return (1);
26}])
27m4_ignore([dnl
28	return (0);
29}])
30