DirEntryDeinitCopy
Description
Deinitialize a directory entry previously produced by DirEntryInitCopy. Releases the owned name buffer and zeroes the type slot.
Parameters
| Name | Direction | Description |
|---|---|---|
copy |
in,out | Entry to release. |
Success
Returns copy with name freed (length and data cleared) and type set to 0; the struct itself is left for the caller to release.
Failure
Aborts via LOG_FATAL if copy is NULL.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Dir.c:52:
}
DirEntry *DirEntryDeinitCopy(DirEntry *copy) {
if (!copy) {
LOG_FATAL("Invalid arguments");
Last updated on