📄 ndbm.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><ndbm.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_007_868"> </a>NAME</h4><blockquote>ndbm.h - definitions for ndbm database operations</blockquote><h4><a name = "tag_000_007_869"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <ndbm.h></code></pre></blockquote><h4><a name = "tag_000_007_870"> </a>DESCRIPTION</h4><blockquote>The<i><ndbm.h></i>header defines the<b>datum</b>type as a structure that includes at least the following members:<dl compact><dt><b>void *dptr</b><dd>A pointer to the application's data<dt><b>size_t dsize</b><dd>The size of the object pointed to by <b>dptr</b></dl><p>The <b>size_t</b>type is defined through <b>typedef</b>as described in <i><a href="stddef.h.html"><stddef.h></a></i>.<p>The<i><ndbm.h></i>header defines the<b>DBM</b>type through<b>typedef</b>.<p>The following constants are defined as possible values for the<i>store_mode</i> argument to<i><a href="dbm_store.html">dbm_store()</a></i>:<dl compact><dt>DBM_INSERT<dd>Insertion of new entries only<dt>DBM_REPLACE<dd>Allow replacing existing entries</dl><p>The following are declared as functions and may also be defined as macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>int <a href="dbm_clearerr.html">dbm_clearerr</a>(DBM *);void <a href="dbm_close.html">dbm_close</a>(DBM *);int <a href="dbm_delete.html">dbm_delete</a>(DBM *, datum);int <a href="dbm_error.html">dbm_error</a>(DBM *);datum <a href="dbm_fetch.html">dbm_fetch</a>(DBM *, datum);datum <a href="dbm_firstkey.html">dbm_firstkey</a>(DBM *);datum <a href="dbm_nextkey.html">dbm_nextkey</a>(DBM *);DBM *<a href="dbm_open.html">dbm_open</a>(const char *, int, mode_t);int <a href="dbm_store.html">dbm_store</a>(DBM *, datum, datum, int);</code></pre><p>The <b>mode_t</b>type is defined through<b>typedef</b>as described in<i><a href="systypes.h.html"><sys/types.h></a></i>.</blockquote><h4><a name = "tag_000_007_871"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_872"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_007_873"> </a>SEE ALSO</h4><blockquote><i><a href="dbm_clearerr.html">dbm_clearerr()</a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -