📄 tdb_fetch.3
字号:
.TH tdb_fetch "Aug 16, 2000" "Samba" "Linux Programmer's Manual".SH NAMEtdb_fetch - fetch a record from a tdb database.SH SYNOPSIS.nf.B #include <tdb.h>.sp.BI "TDB_DATA tdb_fetch(TDB_CONTEXT *" tdb ", TDB_DATA " key ");".sp.SH DESCRIPTIONFetch the record from the .I tdbdatabase whose key matches.I key, a lump of data that is used as the index into the database. .spThe TDB_DATA structure used for both the key and the return value isdefined as:.PP.RS.nftypedef struct { char *dptr; size_t dsize;} TDB_DATA;.fi.RE.PP.SH "RETURN VALUE"If the call succeeds, then a TDB_DATA structure is returned with the.I dptr structure filled in. If the call fails then .I dptr will be set to NULL..sp.B NOTE:The caller is responsible for freeing the data pointed to by.I dptr..SH AUTHORSSoftware: Andrew Tridgell <tridge@linuxcare.com> and Luke Kenneth Casson LeightonMan page: Ben Woodard <ben@valinux.com>.SH "SEE ALSO".BR gdbm (3),.BR tdb(3)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -