KvConfigLen
KvConfigLen
Description
Number of stored entries.
Parameters
| Name | Direction | Description |
|---|---|---|
cfg |
in | Config object. |
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Parse.c:21:
result = result && (si.pos == si.length);
result = result && (KvConfigLen(&cfg) == 3);
result = result && KvConfigContains(&cfg, "host");
result = result && host && StrCmpZstr(host, "localhost") == 0;- In
Parse.c:52:
result = result && (si.pos == si.length);
result = result && (KvConfigLen(&cfg) == 4);
result = result && path && StrCmpZstr(path, "/srv/my app") == 0;
result = result && user && StrCmpZstr(user, "root") == 0;
Last updated on